mirror of
https://github.com/home-assistant/core.git
synced 2025-08-31 02:11:32 +02:00
Fix refactor
This commit is contained in:
@@ -96,19 +96,7 @@ async def async_setup_entry(
|
|||||||
name = entry.title
|
name = entry.title
|
||||||
|
|
||||||
async_add_entities(
|
async_add_entities(
|
||||||
[
|
[CompensationSensor(conf.get(CONF_UNIQUE_ID), name, source, attribute, conf)]
|
||||||
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],
|
|
||||||
)
|
|
||||||
]
|
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user