Skip to content

Commit

Permalink
Update merge solution (| is not available berfore pytohn 3.9
Browse files Browse the repository at this point in the history
  • Loading branch information
grm committed Jun 12, 2021
1 parent 545bdbc commit fd4ae11
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions custom_components/gardena_smart_system/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
GARDENA_LOCATION,
)


_LOGGER = logging.getLogger(__name__)

SOIL_SENSOR_TYPES = {
Expand All @@ -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."""
Expand Down

0 comments on commit fd4ae11

Please sign in to comment.