Skip to content

Commit

Permalink
Merge pull request #21 from felixmxr/master
Browse files Browse the repository at this point in the history
change Celsius temperature definition to prevent deprecation in homeassistant
  • Loading branch information
Lyr3x authored Feb 28, 2024
2 parents f2d5f5f + b2dedc8 commit 6c26d4a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions custom_components/duet3d/const.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""Constants for the Duet3D integration."""
from homeassistant.const import (
TEMP_CELSIUS,
UnitOfTemperature,
)

DOMAIN = "duet3d"
Expand All @@ -26,12 +26,12 @@
SENSOR_TYPES = {
"Bed Temperatures": {
"json_path": "status.heat.heaters[0]",
"unit": "TEMP_CELSIUS",
"unit": "UnitOfTemperature.CELSIUS",
"icon": "mdi:thermometer",
},
"Tool Temperatures": {
"json_path": "status.heat.heaters",
"unit": "TEMP_CELSIUS",
"unit": "UnitOfTemperature.CELSIUS",
"icon": "mdi:thermometer",
},
"Current State": {
Expand Down

0 comments on commit 6c26d4a

Please sign in to comment.