From 84aa43793b98475a9008c3f52ac8fb2bdbf34581 Mon Sep 17 00:00:00 2001 From: Ryan Snodgrass Date: Wed, 22 May 2024 21:19:52 -0400 Subject: [PATCH] switched to UnitOfTemperature.FAHRENHEIT --- custom_components/poolmath/targets.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/custom_components/poolmath/targets.py b/custom_components/poolmath/targets.py index ead864c..b24554b 100644 --- a/custom_components/poolmath/targets.py +++ b/custom_components/poolmath/targets.py @@ -4,7 +4,7 @@ ATTR_ICON, ATTR_NAME, ATTR_UNIT_OF_MEASUREMENT, - TEMP_FAHRENHEIT, + UnitOfTemperature ) from .const import ( @@ -81,13 +81,13 @@ }, 'temp': { ATTR_NAME: 'Temp', - ATTR_UNIT_OF_MEASUREMENT: TEMP_FAHRENHEIT, + ATTR_UNIT_OF_MEASUREMENT: UnitOfTemperature.FAHRENHEIT, ATTR_DESCRIPTION: 'Temperature', ATTR_ICON: 'mdi:coolant-temperature', }, 'waterTemp': { ATTR_NAME: 'Temp', - ATTR_UNIT_OF_MEASUREMENT: TEMP_FAHRENHEIT, + ATTR_UNIT_OF_MEASUREMENT: UnitOfTemperature.FAHRENHEIT, ATTR_DESCRIPTION: 'Temperature', ATTR_ICON: 'mdi:coolant-temperature', }, @@ -99,7 +99,7 @@ }, 'pressure': { ATTR_NAME: 'Pressure', - ATTR_UNIT_OF_MEASUREMENT: TEMP_FAHRENHEIT, + ATTR_UNIT_OF_MEASUREMENT: UnitOfTemperature.FAHRENHEIT, ATTR_DESCRIPTION: 'Filter Pressure', ATTR_ICON: 'mdi:coolant-temperature', },