Update mypy-dev to 1.17.0a2 (#146002)

* Update mypy-dev to 1.17.0a2

* Fix
This commit is contained in:
Marc Mueller
2025-06-02 06:06:38 +02:00
committed by GitHub
parent b96a7aebcd
commit dd85a1e5f0
3 changed files with 4 additions and 8 deletions

View File

@ -162,7 +162,7 @@ class MatterLight(MatterEntity, LightEntity):
assert level_control is not None
level = round( # type: ignore[unreachable]
level = round(
renormalize(
brightness,
(0, 255),
@ -249,7 +249,7 @@ class MatterLight(MatterEntity, LightEntity):
# We should not get here if brightness is not supported.
assert level_control is not None
LOGGER.debug( # type: ignore[unreachable]
LOGGER.debug(
"Got brightness %s for %s",
level_control.currentLevel,
self.entity_id,

View File

@ -2,8 +2,6 @@
from __future__ import annotations
from typing import cast
from homeassistant.const import ATTR_SW_VERSION
from homeassistant.helpers.device_registry import DeviceEntryType, DeviceInfo
from homeassistant.helpers.entity import EntityDescription
@ -40,7 +38,5 @@ class RadarrEntity(CoordinatorEntity[RadarrDataUpdateCoordinator[T]]):
name=self.coordinator.config_entry.title,
)
if isinstance(self.coordinator, StatusDataUpdateCoordinator):
device_info[ATTR_SW_VERSION] = cast(
StatusDataUpdateCoordinator, self.coordinator
).data.version
device_info[ATTR_SW_VERSION] = self.coordinator.data.version
return device_info

View File

@ -13,7 +13,7 @@ freezegun==1.5.1
go2rtc-client==0.1.3b0
license-expression==30.4.1
mock-open==1.4.0
mypy-dev==1.16.0a8
mypy-dev==1.17.0a2
pre-commit==4.0.0
pydantic==2.11.3
pylint==3.3.7