mirror of
https://github.com/home-assistant/core.git
synced 2026-02-14 23:28:42 +00: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
|
||||
import logging
|
||||
import urllib
|
||||
import urllib.error
|
||||
|
||||
from pyW215.pyW215 import SmartPlug
|
||||
|
||||
|
||||
@@ -384,11 +384,7 @@ class PrometheusMetrics:
|
||||
if event.data["action"] != "update" or "area_id" not in event.data["changes"]:
|
||||
return
|
||||
|
||||
device_id = event.data.get("device_id")
|
||||
|
||||
if device_id is None:
|
||||
return
|
||||
|
||||
device_id = event.data["device_id"]
|
||||
_LOGGER.debug("Handling device update for %s", device_id)
|
||||
|
||||
device = self.device_registry.async_get(device_id)
|
||||
|
||||
@@ -11,10 +11,10 @@ astroid==4.0.1
|
||||
coverage==7.10.6
|
||||
freezegun==1.5.2
|
||||
# librt is an internal mypy dependency
|
||||
librt==0.2.1
|
||||
librt==0.7.3
|
||||
license-expression==30.4.3
|
||||
mock-open==1.4.0
|
||||
mypy-dev==1.19.0a4
|
||||
mypy==1.19.1
|
||||
prek==0.2.28
|
||||
pydantic==2.12.2
|
||||
pylint==4.0.1
|
||||
|
||||
Reference in New Issue
Block a user