mirror of
https://github.com/home-assistant/core.git
synced 2025-04-23 16:57:53 +00:00
Remove plugwise from mypy ignore list (#64525)
Co-authored-by: epenet <epenet@users.noreply.github.com>
This commit is contained in:
parent
86dbe068e7
commit
51c8e041ea
@ -36,7 +36,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[BinarySensorEntity] = []
|
||||
is_thermostat = api.single_master_thermostat()
|
||||
|
||||
all_devices = api.get_all_devices()
|
||||
|
@ -36,6 +36,7 @@ from homeassistant.helpers.update_coordinator import (
|
||||
)
|
||||
|
||||
from .const import (
|
||||
API,
|
||||
COORDINATOR,
|
||||
DEFAULT_PORT,
|
||||
DEFAULT_SCAN_INTERVAL,
|
||||
@ -147,9 +148,12 @@ async def async_setup_entry_gw(hass: HomeAssistant, entry: ConfigEntry) -> bool:
|
||||
async def _update_listener(hass: HomeAssistant, entry: ConfigEntry):
|
||||
"""Handle options update."""
|
||||
coordinator = hass.data[DOMAIN][entry.entry_id][COORDINATOR]
|
||||
coordinator.update_interval = timedelta(
|
||||
seconds=entry.options.get(CONF_SCAN_INTERVAL)
|
||||
)
|
||||
update_interval = entry.options.get(CONF_SCAN_INTERVAL)
|
||||
if update_interval is None:
|
||||
api = hass.data[DOMAIN][entry.entry_id][API]
|
||||
update_interval = DEFAULT_SCAN_INTERVAL[api.smile_type]
|
||||
|
||||
coordinator.update_interval = timedelta(seconds=update_interval)
|
||||
|
||||
|
||||
async def async_unload_entry_gw(hass: HomeAssistant, entry: ConfigEntry):
|
||||
|
@ -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():
|
||||
|
3
mypy.ini
3
mypy.ini
@ -2158,9 +2158,6 @@ ignore_errors = true
|
||||
[mypy-homeassistant.components.plex.*]
|
||||
ignore_errors = true
|
||||
|
||||
[mypy-homeassistant.components.plugwise.*]
|
||||
ignore_errors = true
|
||||
|
||||
[mypy-homeassistant.components.profiler.*]
|
||||
ignore_errors = true
|
||||
|
||||
|
@ -61,7 +61,6 @@ IGNORED_MODULES: Final[list[str]] = [
|
||||
"homeassistant.components.ozw.*",
|
||||
"homeassistant.components.philips_js.*",
|
||||
"homeassistant.components.plex.*",
|
||||
"homeassistant.components.plugwise.*",
|
||||
"homeassistant.components.profiler.*",
|
||||
"homeassistant.components.ring.*",
|
||||
"homeassistant.components.solaredge.*",
|
||||
|
Loading…
x
Reference in New Issue
Block a user