From 21f374154f742c2915702f19d8c368448faf8acf Mon Sep 17 00:00:00 2001 From: G Johansson Date: Thu, 3 Jul 2025 19:14:16 +0000 Subject: [PATCH] Fix refactor --- homeassistant/components/compensation/sensor.py | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/homeassistant/components/compensation/sensor.py b/homeassistant/components/compensation/sensor.py index eb2cef833bef..2ac464443c1c 100644 --- a/homeassistant/components/compensation/sensor.py +++ b/homeassistant/components/compensation/sensor.py @@ -94,19 +94,7 @@ async def async_setup_entry( name = entry.title async_add_entities( - [ - CompensationSensor( - entry.entry_id, - name, - source, - attribute, - conf[CONF_PRECISION], - conf[CONF_POLYNOMIAL], - conf.get(CONF_UNIT_OF_MEASUREMENT), - conf[CONF_MINIMUM], - conf[CONF_MAXIMUM], - ) - ] + [CompensationSensor(conf.get(CONF_UNIQUE_ID), name, source, attribute, conf)] )