mirror of
https://github.com/Electric-Special/ha-core.git
synced 2026-03-21 00:03:16 +01:00
Switch back to mypy 1.19.1 (#161817)
This commit is contained in:
@@ -4,7 +4,7 @@ from __future__ import annotations
|
|||||||
|
|
||||||
from datetime import datetime
|
from datetime import datetime
|
||||||
import logging
|
import logging
|
||||||
import urllib
|
import urllib.error
|
||||||
|
|
||||||
from pyW215.pyW215 import SmartPlug
|
from pyW215.pyW215 import SmartPlug
|
||||||
|
|
||||||
|
|||||||
@@ -384,11 +384,7 @@ class PrometheusMetrics:
|
|||||||
if event.data["action"] != "update" or "area_id" not in event.data["changes"]:
|
if event.data["action"] != "update" or "area_id" not in event.data["changes"]:
|
||||||
return
|
return
|
||||||
|
|
||||||
device_id = event.data.get("device_id")
|
device_id = event.data["device_id"]
|
||||||
|
|
||||||
if device_id is None:
|
|
||||||
return
|
|
||||||
|
|
||||||
_LOGGER.debug("Handling device update for %s", device_id)
|
_LOGGER.debug("Handling device update for %s", device_id)
|
||||||
|
|
||||||
device = self.device_registry.async_get(device_id)
|
device = self.device_registry.async_get(device_id)
|
||||||
|
|||||||
@@ -11,10 +11,10 @@ astroid==4.0.1
|
|||||||
coverage==7.10.6
|
coverage==7.10.6
|
||||||
freezegun==1.5.2
|
freezegun==1.5.2
|
||||||
# librt is an internal mypy dependency
|
# librt is an internal mypy dependency
|
||||||
librt==0.2.1
|
librt==0.7.3
|
||||||
license-expression==30.4.3
|
license-expression==30.4.3
|
||||||
mock-open==1.4.0
|
mock-open==1.4.0
|
||||||
mypy-dev==1.19.0a4
|
mypy==1.19.1
|
||||||
prek==0.2.28
|
prek==0.2.28
|
||||||
pydantic==2.12.2
|
pydantic==2.12.2
|
||||||
pylint==4.0.1
|
pylint==4.0.1
|
||||||
|
|||||||
Reference in New Issue
Block a user