diff --git a/custom_components/panasonic_cc/manifest.json b/custom_components/panasonic_cc/manifest.json index fb10a98..fe49c6e 100644 --- a/custom_components/panasonic_cc/manifest.json +++ b/custom_components/panasonic_cc/manifest.json @@ -2,7 +2,7 @@ "domain": "panasonic_cc", "name": "Panasonic Comfort Cloud", "after_dependencies": ["http"], - "version": "1.0.50", + "version": "1.0.51", "config_flow": true, "documentation": "https://github.com/sockless-coding/panasonic_cc/", "dependencies": [], diff --git a/custom_components/panasonic_cc/switch.py b/custom_components/panasonic_cc/switch.py index 7038719..19c589a 100644 --- a/custom_components/panasonic_cc/switch.py +++ b/custom_components/panasonic_cc/switch.py @@ -23,8 +23,11 @@ async def async_setup_platform(hass, config, async_add_entities, discovery_info= async def async_setup_entry(hass, entry, async_add_entities): devices = [] - for device in hass.data[PANASONIC_DEVICES]: + device_list: list[PanasonicApiDevice] = hass.data[PANASONIC_DEVICES] + for device in device_list: devices.append(PanasonicNanoeSwitch(device)) + if device.support_eco_navi: + devices.append(PanasonicEcoNaviSwitch(device)) async_add_entities(devices) class PanasonicNanoeSwitch(ToggleEntity):