Files
hass-fpl/custom_components/fpl/sensor_KWHSensor.py
Yordan Suarez dc2a97e404 bug fixes
2021-06-05 18:37:17 -04:00

41 lines
969 B
Python

from .fplEntity import FplEntity
class ProjectedKWHSensor(FplEntity):
def __init__(self, coordinator, config, account):
super().__init__(coordinator, config, account, "Projected KWH")
@property
def state(self):
return self.getData("projectedKWH")
@property
def icon(self):
return "mdi:flash"
class DailyAverageKWHSensor(FplEntity):
def __init__(self, coordinator, config, account):
super().__init__(coordinator, config, account, "Daily Average KWH")
@property
def state(self):
return self.getData("dailyAverageKWH")
@property
def icon(self):
return "mdi:flash"
class BillToDateKWHSensor(FplEntity):
def __init__(self, coordinator, config, account):
super().__init__(coordinator, config, account, "Bill To Date KWH")
@property
def state(self):
return self.getData("billToDateKWH")
@property
def icon(self):
return "mdi:flash"