Switch back to mypy 1.19.1 (#161817)

This commit is contained in:
Marc Mueller
2026-01-29 00:12:46 +01:00
committed by GitHub
parent 7e32b50fee
commit f7dcf8de15
3 changed files with 4 additions and 8 deletions

View File

@@ -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

View File

@@ -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)

View File

@@ -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