mirror of
https://github.com/home-assistant/core.git
synced 2025-07-20 11:47:06 +00:00
Update mypy-dev to 1.13.0a1 (#128548)
This commit is contained in:
parent
006d511d47
commit
cb1b917aa6
@ -408,7 +408,7 @@ async def async_setup(hass: HomeAssistant, config: ConfigType) -> bool: # noqa:
|
|||||||
def preprocess_data(data: dict[str, Any]) -> VolDictType:
|
def preprocess_data(data: dict[str, Any]) -> VolDictType:
|
||||||
"""Preprocess the service data."""
|
"""Preprocess the service data."""
|
||||||
base: VolDictType = {
|
base: VolDictType = {
|
||||||
entity_field: data.pop(entity_field)
|
entity_field: data.pop(entity_field) # type: ignore[arg-type]
|
||||||
for entity_field in cv.ENTITY_SERVICE_FIELDS
|
for entity_field in cv.ENTITY_SERVICE_FIELDS
|
||||||
if entity_field in data
|
if entity_field in data
|
||||||
}
|
}
|
||||||
|
@ -96,7 +96,7 @@ async def async_setup_entry(
|
|||||||
# ie Atlantic APC
|
# ie Atlantic APC
|
||||||
entities_based_on_widget_and_controllable: list[Entity] = [
|
entities_based_on_widget_and_controllable: list[Entity] = [
|
||||||
WIDGET_AND_CONTROLLABLE_TO_CLIMATE_ENTITY[device.widget][
|
WIDGET_AND_CONTROLLABLE_TO_CLIMATE_ENTITY[device.widget][
|
||||||
device.controllable_name
|
device.controllable_name # type: ignore[index]
|
||||||
](device.device_url, data.coordinator)
|
](device.device_url, data.coordinator)
|
||||||
for device in data.platforms[Platform.CLIMATE]
|
for device in data.platforms[Platform.CLIMATE]
|
||||||
if device.widget in WIDGET_AND_CONTROLLABLE_TO_CLIMATE_ENTITY
|
if device.widget in WIDGET_AND_CONTROLLABLE_TO_CLIMATE_ENTITY
|
||||||
|
@ -11,7 +11,7 @@ astroid==3.3.4
|
|||||||
coverage==7.6.1
|
coverage==7.6.1
|
||||||
freezegun==1.5.1
|
freezegun==1.5.1
|
||||||
mock-open==1.4.0
|
mock-open==1.4.0
|
||||||
mypy-dev==1.12.0a5
|
mypy-dev==1.13.0a1
|
||||||
pre-commit==4.0.0
|
pre-commit==4.0.0
|
||||||
pydantic==1.10.18
|
pydantic==1.10.18
|
||||||
pylint==3.3.1
|
pylint==3.3.1
|
||||||
|
Loading…
x
Reference in New Issue
Block a user