mirror of
https://github.com/home-assistant/core.git
synced 2025-04-23 00:37:53 +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
|
||||
and envoy_data.tariff.storage_settings
|
||||
and coordinator.envoy.supported_features & SupportedFeatures.ENCHARGE
|
||||
and coordinator.envoy.supported_features & SupportedFeatures.ENPOWER
|
||||
):
|
||||
entities.append(
|
||||
EnvoyStorageSettingsNumberEntity(coordinator, STORAGE_RESERVE_SOC_ENTITY)
|
||||
|
@ -144,6 +144,7 @@ async def async_setup_entry(
|
||||
envoy_data.tariff
|
||||
and envoy_data.tariff.storage_settings
|
||||
and coordinator.envoy.supported_features & SupportedFeatures.ENCHARGE
|
||||
and coordinator.envoy.supported_features & SupportedFeatures.ENPOWER
|
||||
):
|
||||
entities.append(
|
||||
EnvoyStorageSettingsSelectEntity(coordinator, STORAGE_MODE_ENTITY)
|
||||
|
Loading…
x
Reference in New Issue
Block a user