Skip to content

Commit

Permalink
Fixing co2sensor
Browse files Browse the repository at this point in the history
A typo prevented a unique id for the co2sensor

Fixes #41
  • Loading branch information
valleedelisle committed Jan 13, 2022
1 parent 4aac4e8 commit ff4196c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/hilo/sensor.py
Expand Up @@ -221,7 +221,7 @@ class Co2Sensor(HiloEntity, SensorEntity):
def __init__(self, hilo, device):
self._attr_name = f"{device.name} WifiStrength"
super().__init__(hilo, name=self._attr_name, device=device)
self._attr_unique_id = f"{slugify(device.name)}-wifistrength"
self._attr_unique_id = f"{slugify(device.name)}-co2"
LOG.debug(f"Setting up WifiStrengthSensor entity: {self._attr_name}")

@property
Expand Down

0 comments on commit ff4196c

Please sign in to comment.