From fd4ae11564ec4645ea93325be50833d5e848517a Mon Sep 17 00:00:00 2001 From: grm Date: Sun, 13 Jun 2021 01:22:55 +0200 Subject: [PATCH] Update merge solution (| is not available berfore pytohn 3.9 --- custom_components/gardena_smart_system/sensor.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/custom_components/gardena_smart_system/sensor.py b/custom_components/gardena_smart_system/sensor.py index b8856a8..70129c1 100644 --- a/custom_components/gardena_smart_system/sensor.py +++ b/custom_components/gardena_smart_system/sensor.py @@ -25,7 +25,6 @@ GARDENA_LOCATION, ) - _LOGGER = logging.getLogger(__name__) SOIL_SENSOR_TYPES = { @@ -34,10 +33,10 @@ ATTR_BATTERY_LEVEL: [PERCENTAGE, "mdi:battery", DEVICE_CLASS_BATTERY], } -SENSOR_TYPES = { +SENSOR_TYPES = {**{ "ambient_temperature": [TEMP_CELSIUS, "mdi:thermometer", DEVICE_CLASS_TEMPERATURE], "light_intensity": ["lx", None, DEVICE_CLASS_ILLUMINANCE], -} | SOIL_SENSOR_TYPES +}, **SOIL_SENSOR_TYPES} async def async_setup_entry(hass, config_entry, async_add_entities): """Perform the setup for Gardena sensor devices."""