diff --git a/homeassistant/components/plaato/__init__.py b/homeassistant/components/plaato/__init__.py index 89da2114849..183eb98e213 100644 --- a/homeassistant/components/plaato/__init__.py +++ b/homeassistant/components/plaato/__init__.py @@ -33,6 +33,7 @@ from homeassistant.const import ( TEMP_FAHRENHEIT, VOLUME_GALLONS, VOLUME_LITERS, + Platform, ) from homeassistant.core import HomeAssistant, callback from homeassistant.helpers import aiohttp_client @@ -219,7 +220,7 @@ class PlaatoCoordinator(DataUpdateCoordinator): self.api = Plaato(auth_token=auth_token) self.hass = hass self.device_type = device_type - self.platforms = [] + self.platforms: list[Platform] = [] super().__init__( hass, diff --git a/homeassistant/components/plaato/binary_sensor.py b/homeassistant/components/plaato/binary_sensor.py index 94e4a57103f..a8b7dc51c1e 100644 --- a/homeassistant/components/plaato/binary_sensor.py +++ b/homeassistant/components/plaato/binary_sensor.py @@ -55,3 +55,4 @@ class PlaatoBinarySensor(PlaatoEntity, BinarySensorEntity): return BinarySensorDeviceClass.PROBLEM if self._sensor_type is PlaatoKeg.Pins.POURING: return BinarySensorDeviceClass.OPENING + return None diff --git a/mypy.ini b/mypy.ini index 06b3e30e6b7..581ff48e6ba 100644 --- a/mypy.ini +++ b/mypy.ini @@ -2155,9 +2155,6 @@ ignore_errors = true [mypy-homeassistant.components.philips_js.*] ignore_errors = true -[mypy-homeassistant.components.plaato.*] -ignore_errors = true - [mypy-homeassistant.components.plex.*] ignore_errors = true diff --git a/script/hassfest/mypy_config.py b/script/hassfest/mypy_config.py index 85d62447685..cc11d0f97e5 100644 --- a/script/hassfest/mypy_config.py +++ b/script/hassfest/mypy_config.py @@ -60,7 +60,6 @@ IGNORED_MODULES: Final[list[str]] = [ "homeassistant.components.onvif.*", "homeassistant.components.ozw.*", "homeassistant.components.philips_js.*", - "homeassistant.components.plaato.*", "homeassistant.components.plex.*", "homeassistant.components.plugwise.*", "homeassistant.components.profiler.*",