mirror of
https://github.com/home-assistant/core.git
synced 2025-07-17 18:27:09 +00:00
Update mypy-dev to 1.17.0a2 (#146002)
* Update mypy-dev to 1.17.0a2 * Fix
This commit is contained in:
parent
b96a7aebcd
commit
dd85a1e5f0
@ -162,7 +162,7 @@ class MatterLight(MatterEntity, LightEntity):
|
|||||||
|
|
||||||
assert level_control is not None
|
assert level_control is not None
|
||||||
|
|
||||||
level = round( # type: ignore[unreachable]
|
level = round(
|
||||||
renormalize(
|
renormalize(
|
||||||
brightness,
|
brightness,
|
||||||
(0, 255),
|
(0, 255),
|
||||||
@ -249,7 +249,7 @@ class MatterLight(MatterEntity, LightEntity):
|
|||||||
# We should not get here if brightness is not supported.
|
# We should not get here if brightness is not supported.
|
||||||
assert level_control is not None
|
assert level_control is not None
|
||||||
|
|
||||||
LOGGER.debug( # type: ignore[unreachable]
|
LOGGER.debug(
|
||||||
"Got brightness %s for %s",
|
"Got brightness %s for %s",
|
||||||
level_control.currentLevel,
|
level_control.currentLevel,
|
||||||
self.entity_id,
|
self.entity_id,
|
||||||
|
@ -2,8 +2,6 @@
|
|||||||
|
|
||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
|
|
||||||
from typing import cast
|
|
||||||
|
|
||||||
from homeassistant.const import ATTR_SW_VERSION
|
from homeassistant.const import ATTR_SW_VERSION
|
||||||
from homeassistant.helpers.device_registry import DeviceEntryType, DeviceInfo
|
from homeassistant.helpers.device_registry import DeviceEntryType, DeviceInfo
|
||||||
from homeassistant.helpers.entity import EntityDescription
|
from homeassistant.helpers.entity import EntityDescription
|
||||||
@ -40,7 +38,5 @@ class RadarrEntity(CoordinatorEntity[RadarrDataUpdateCoordinator[T]]):
|
|||||||
name=self.coordinator.config_entry.title,
|
name=self.coordinator.config_entry.title,
|
||||||
)
|
)
|
||||||
if isinstance(self.coordinator, StatusDataUpdateCoordinator):
|
if isinstance(self.coordinator, StatusDataUpdateCoordinator):
|
||||||
device_info[ATTR_SW_VERSION] = cast(
|
device_info[ATTR_SW_VERSION] = self.coordinator.data.version
|
||||||
StatusDataUpdateCoordinator, self.coordinator
|
|
||||||
).data.version
|
|
||||||
return device_info
|
return device_info
|
||||||
|
@ -13,7 +13,7 @@ freezegun==1.5.1
|
|||||||
go2rtc-client==0.1.3b0
|
go2rtc-client==0.1.3b0
|
||||||
license-expression==30.4.1
|
license-expression==30.4.1
|
||||||
mock-open==1.4.0
|
mock-open==1.4.0
|
||||||
mypy-dev==1.16.0a8
|
mypy-dev==1.17.0a2
|
||||||
pre-commit==4.0.0
|
pre-commit==4.0.0
|
||||||
pydantic==2.11.3
|
pydantic==2.11.3
|
||||||
pylint==3.3.7
|
pylint==3.3.7
|
||||||
|
Loading…
x
Reference in New Issue
Block a user