From 154236b549fe5f693abe5f47d1f293bbeaecf155 Mon Sep 17 00:00:00 2001 From: Robert Alfaro Date: Fri, 23 Aug 2024 17:02:25 -0700 Subject: [PATCH] Switch to ha const ATTR_ATTRIBUTION --- custom_components/poolmath/const.py | 1 - custom_components/poolmath/sensor.py | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/custom_components/poolmath/const.py b/custom_components/poolmath/const.py index 98a225e..408e867 100644 --- a/custom_components/poolmath/const.py +++ b/custom_components/poolmath/const.py @@ -5,7 +5,6 @@ ATTRIBUTION = "Data by PoolMath (Trouble Free Pool)" -ATTR_ATTRIBUTION = "attribution" ATTR_DESCRIPTION = "description" ATTR_LAST_UPDATED_TIME = "last_updated" ATTR_TARGET_MIN = "target_min" diff --git a/custom_components/poolmath/sensor.py b/custom_components/poolmath/sensor.py index b14caab..d0e16ab 100644 --- a/custom_components/poolmath/sensor.py +++ b/custom_components/poolmath/sensor.py @@ -3,6 +3,7 @@ from homeassistant.config_entries import ConfigEntry from homeassistant.const import ( + ATTR_ATTRIBUTION, ATTR_NAME, ATTR_UNIT_OF_MEASUREMENT, CONF_NAME, @@ -17,7 +18,6 @@ from .client import PoolMathClient from .const import ( - ATTR_ATTRIBUTION, ATTR_LAST_UPDATED_TIME, ATTR_TARGET_SOURCE, ATTRIBUTION,