mirror of
https://github.com/home-assistant/core.git
synced 2025-07-24 21:57:51 +00:00
Add additional checks for Enpower supported feature (#117107)
This commit is contained in:
parent
32a94fc114
commit
f3d2ba7d8d
@ -89,6 +89,7 @@ async def async_setup_entry(
|
|||||||
envoy_data.tariff
|
envoy_data.tariff
|
||||||
and envoy_data.tariff.storage_settings
|
and envoy_data.tariff.storage_settings
|
||||||
and coordinator.envoy.supported_features & SupportedFeatures.ENCHARGE
|
and coordinator.envoy.supported_features & SupportedFeatures.ENCHARGE
|
||||||
|
and coordinator.envoy.supported_features & SupportedFeatures.ENPOWER
|
||||||
):
|
):
|
||||||
entities.append(
|
entities.append(
|
||||||
EnvoyStorageSettingsNumberEntity(coordinator, STORAGE_RESERVE_SOC_ENTITY)
|
EnvoyStorageSettingsNumberEntity(coordinator, STORAGE_RESERVE_SOC_ENTITY)
|
||||||
|
@ -144,6 +144,7 @@ async def async_setup_entry(
|
|||||||
envoy_data.tariff
|
envoy_data.tariff
|
||||||
and envoy_data.tariff.storage_settings
|
and envoy_data.tariff.storage_settings
|
||||||
and coordinator.envoy.supported_features & SupportedFeatures.ENCHARGE
|
and coordinator.envoy.supported_features & SupportedFeatures.ENCHARGE
|
||||||
|
and coordinator.envoy.supported_features & SupportedFeatures.ENPOWER
|
||||||
):
|
):
|
||||||
entities.append(
|
entities.append(
|
||||||
EnvoyStorageSettingsSelectEntity(coordinator, STORAGE_MODE_ENTITY)
|
EnvoyStorageSettingsSelectEntity(coordinator, STORAGE_MODE_ENTITY)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user