mirror of
https://github.com/home-assistant/core.git
synced 2025-06-25 01:21:51 +02:00
Update mypy-dev to 1.17.0a2 (#146002)
* Update mypy-dev to 1.17.0a2 * Fix
This commit is contained in:
@ -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,
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Reference in New Issue
Block a user