From 4b62b59f66cfb0f9034292379258e98edad281f5 Mon Sep 17 00:00:00 2001 From: Yordan Suarez Date: Fri, 14 Jan 2022 01:55:33 -0500 Subject: [PATCH] remove unnecessary variable & add FPL to device info name --- custom_components/fpl/fplEntity.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/custom_components/fpl/fplEntity.py b/custom_components/fpl/fplEntity.py index 1680931..1935f5e 100644 --- a/custom_components/fpl/fplEntity.py +++ b/custom_components/fpl/fplEntity.py @@ -24,10 +24,9 @@ class FplEntity(CoordinatorEntity, SensorEntity): @property def unique_id(self): """Return the ID of this device.""" - id = "{}{}{}".format( + return "{}{}{}".format( DOMAIN, self.account, self.sensorName.lower().replace(" ", "") ) - return id @property def name(self): @@ -37,7 +36,7 @@ class FplEntity(CoordinatorEntity, SensorEntity): def device_info(self): return { "identifiers": {(DOMAIN, self.account)}, - "name": f"Account {self.account}", + "name": f"FPL Account {self.account}", "model": VERSION, "manufacturer": "Florida Power & Light", }