Remove plugwise from mypy ignore list (#64525)

Co-authored-by: epenet <epenet@users.noreply.github.com>
This commit is contained in:
epenet 2022-01-20 10:14:52 +01:00 committed by GitHub
parent 86dbe068e7
commit 51c8e041ea
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 12 additions and 12 deletions

View file

@ -61,7 +61,7 @@ ATTR_PRESSURE = [
SensorStateClass.MEASUREMENT,
]
TEMP_SENSOR_MAP = {
TEMP_SENSOR_MAP: dict[str, list] = {
"setpoint": ATTR_TEMPERATURE,
"temperature": ATTR_TEMPERATURE,
"intended_boiler_temperature": ATTR_TEMPERATURE,
@ -71,7 +71,7 @@ TEMP_SENSOR_MAP = {
"return_temperature": ATTR_TEMPERATURE,
}
ENERGY_SENSOR_MAP = {
ENERGY_SENSOR_MAP: dict[str, list] = {
"electricity_consumed": [
"Current Consumed Power",
POWER_WATT,
@ -194,7 +194,7 @@ ENERGY_SENSOR_MAP = {
],
}
MISC_SENSOR_MAP = {
MISC_SENSOR_MAP: dict[str, list] = {
"battery": ATTR_BATTERY_LEVEL,
"illuminance": ATTR_ILLUMINANCE,
"modulation_level": [
@ -234,7 +234,7 @@ async def async_setup_entry(
api = hass.data[DOMAIN][config_entry.entry_id]["api"]
coordinator = hass.data[DOMAIN][config_entry.entry_id][COORDINATOR]
entities = []
entities: list[SmileSensor] = []
all_devices = api.get_all_devices()
single_thermostat = api.single_master_thermostat()
for dev_id, device_properties in all_devices.items():