Skip to content

Commit

Permalink
Merge pull request #9 from tube0013/master
Browse files Browse the repository at this point in the history
Update UV_INDEX const for HA 0.109
  • Loading branch information
briis committed Apr 24, 2020
2 parents 78034b7 + 8d9236f commit a095cb5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions custom_components/smartweatherudp/sensor.py
Expand Up @@ -11,7 +11,7 @@
DEVICE_CLASS_PRESSURE,
DEVICE_CLASS_TEMPERATURE,
DEVICE_CLASS_BATTERY,
TEMP_CELSIUS, UNIT_UV_INDEX)
TEMP_CELSIUS, UV_INDEX)
from homeassistant.helpers.entity import Entity, generate_entity_id

DOMAIN = 'smartweatherudp'
Expand Down Expand Up @@ -46,7 +46,7 @@
'precipitation_rate': ['Rain rate', 'mm/h', 'mdi:weather-pouring', None, 'in/h'],
'humidity': ['Humidity', '%', 'mdi:water-percent', DEVICE_CLASS_HUMIDITY, None],
'pressure': ['Pressure', 'hPa', 'mdi:gauge', DEVICE_CLASS_PRESSURE, 'inHg'],
'uv': ['UV', UNIT_UV_INDEX,'mdi:weather-sunny', None, None],
'uv': ['UV', UV_INDEX,'mdi:weather-sunny', None, None],
'solar_radiation': ['Solar Radiation', 'W/m2', 'mdi:solar-power', None, None],
'illuminance': ['Illuminance', 'Lx', 'mdi:brightness-5', DEVICE_CLASS_ILLUMINANCE, None],
'lightning_count': ['Lightning Count', None, 'mdi:flash', None, None],
Expand Down

0 comments on commit a095cb5

Please sign in to comment.