From db5b0f345d6c4964c5f90ef0050e7fbc20797ea9 Mon Sep 17 00:00:00 2001 From: hif2k1 Date: Tue, 7 Feb 2023 20:16:32 +0000 Subject: [PATCH] Update __init__.py Fix backward compatibility --- custom_components/battery_sim/__init__.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/custom_components/battery_sim/__init__.py b/custom_components/battery_sim/__init__.py index 6dedd56..9f63e9e 100644 --- a/custom_components/battery_sim/__init__.py +++ b/custom_components/battery_sim/__init__.py @@ -64,6 +64,8 @@ { vol.Required(CONF_IMPORT_SENSOR): cv.entity_id, vol.Required(CONF_EXPORT_SENSOR): cv.entity_id, + vol.Optional(CONF_ENERGY_TARIFF): cv.entity_id, + vol.Optional(CONF_ENERGY_EXPORT_TARIFF): cv.entity_id, vol.Optional(CONF_ENERGY_IMPORT_TARIFF): cv.entity_id, vol.Optional(CONF_NAME): cv.string, vol.Required(CONF_BATTERY_SIZE): vol.All(float),