mirror of
https://github.com/home-assistant/core.git
synced 2025-08-05 13:45:12 +02:00
Add additional checks for Enpower supported feature (#117107)
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user