renamed defineAttributes method with customAttributes

This commit is contained in:
Yordan Suarez
2022-03-03 07:31:40 -05:00
parent 3be969883a
commit f3ccfce2e4
5 changed files with 58 additions and 40 deletions

View File

@@ -43,7 +43,7 @@ class FplEntity(CoordinatorEntity, SensorEntity):
"manufacturer": "Florida Power & Light",
}
def defineAttributes(self) -> dict:
def customAttributes(self) -> dict:
"""override this method to set custom attributes"""
return {}
@@ -54,7 +54,7 @@ class FplEntity(CoordinatorEntity, SensorEntity):
"attribution": ATTRIBUTION,
"integration": "FPL",
}
attributes.update(self.defineAttributes())
attributes.update(self.customAttributes())
return attributes
def getData(self, field):