Skip to content

Commit

Permalink
5 not 4 and fix device check.
Browse files Browse the repository at this point in the history
  • Loading branch information
dalinicus committed Jan 31, 2025
1 parent 15b6774 commit 3064d21
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion custom_components/ac_infinity/const.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ class SensorType:
PROBE_HUMIDITY = 2
PROBE_VPD = 3
EXTERNAL_TEMPERATURE_F = 4
EXTERNAL_TEMPERATURE_C = 4
EXTERNAL_TEMPERATURE_C = 5
EXTERNAL_HUMIDITY = 6
EXTERNAL_VPD = 7
CO2 = 11
Expand Down
2 changes: 1 addition & 1 deletion custom_components/ac_infinity/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ def __get_device_info(
via_device=controller.identifier,
model="UIS CO2 + Light Sensor (AC-COS3)",
)
case SensorType.EXTERNAL_TEMPERATURE_F | SensorType.EXTERNAL_HUMIDITY | SensorType.EXTERNAL_VPD:
case SensorType.EXTERNAL_TEMPERATURE_F | SensorType.EXTERNAL_TEMPERATURE_C | SensorType.EXTERNAL_HUMIDITY | SensorType.EXTERNAL_VPD:
return controller.device_info
case _:
return DeviceInfo(
Expand Down

0 comments on commit 3064d21

Please sign in to comment.