Skip to content

Commit

Permalink
Adding IndoorWeatherStation as basic sensor
Browse files Browse the repository at this point in the history
I don't have this kind of device here so I'm not sure exactly what to
extract from this, but we need to add it here as otherwise it's breaking
integration for users having them.

Fixes #14
  • Loading branch information
valleedelisle committed Dec 24, 2021
1 parent 8288ac2 commit 127fff1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion custom_components/hilo/const.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@
MIN_SCAN_INTERVAL = 15

LIGHT_CLASSES = ["LightDimmer", "WhiteBulb", "ColorBulb", "LightSwitch"]
HILO_SENSOR_CLASSES = ["SmokeDetector", "Meter", "Gateway"]
# Useless for now
HILO_SENSOR_CLASSES = ["SmokeDetector", "Meter", "Gateway", "IndoorWeatherStation"]
CLIMATE_CLASSES = ["Thermostat"]
SWITCH_CLASSES = []

Expand Down
2 changes: 1 addition & 1 deletion custom_components/hilo/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ def create_energy_entity(d):
if d.has_attribute("current_temperature"):
d._temperature_entity = TemperatureSensor(hilo, d)
temperature_entities.append(d._temperature_entity)
if d.type == "SmokeDetector":
if d.type in ["SmokeDetector", "IndoorWeatherStation"]:
d._device_sensor_entity = DeviceSensor(hilo, d)
misc_entities.append(d._device_sensor_entity)

Expand Down

0 comments on commit 127fff1

Please sign in to comment.