Skip to content

Commit

Permalink
Add native unit temperatures
Browse files Browse the repository at this point in the history
  • Loading branch information
andrew-codechimp committed Apr 10, 2024
1 parent fcca673 commit e11fb45
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions custom_components/hive_local_thermostat/number.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
Platform,
STATE_UNAVAILABLE,
STATE_UNKNOWN,
UnitOfTemperature,
)

from .entity import HiveEntity, HiveEntityDescription
Expand Down Expand Up @@ -77,6 +78,7 @@ async def async_setup_entry(
topic=None,
entity_category=EntityCategory.CONFIG,
device_class=NumberDeviceClass.TEMPERATURE,
native_unit_of_measurement=UnitOfTemperature.CELSIUS,
native_min_value=5,
native_max_value=16,
native_step=0.5,
Expand All @@ -92,6 +94,7 @@ async def async_setup_entry(
topic=None,
entity_category=EntityCategory.CONFIG,
device_class=NumberDeviceClass.TEMPERATURE,
native_unit_of_measurement=UnitOfTemperature.CELSIUS,
native_min_value=16,
native_max_value=22,
native_step=0.5,
Expand All @@ -107,6 +110,7 @@ async def async_setup_entry(
topic=None,
entity_category=EntityCategory.CONFIG,
device_class=NumberDeviceClass.TEMPERATURE,
native_unit_of_measurement=UnitOfTemperature.CELSIUS,
native_min_value=12,
native_max_value=32,
native_step=0.5,
Expand Down

0 comments on commit e11fb45

Please sign in to comment.