epd fix
This commit is contained in:
@@ -264,6 +264,9 @@ class MosruEpd(MosruBase):
|
|||||||
if epd != []:
|
if epd != []:
|
||||||
break
|
break
|
||||||
epd = self._api.get_epd(self._flat_id, date_str, False)
|
epd = self._api.get_epd(self._flat_id, date_str, False)
|
||||||
|
if len(epd) == 0:
|
||||||
|
self.log('epd not found for date: {}'.format(date_str))
|
||||||
|
continue
|
||||||
epd_first = epd[0]
|
epd_first = epd[0]
|
||||||
data[date_str] = epd_first
|
data[date_str] = epd_first
|
||||||
# epd_total = epd_first['amount']
|
# epd_total = epd_first['amount']
|
||||||
|
|||||||
@@ -16,3 +16,4 @@ filter:
|
|||||||
- sensor.temperature_158d000149c128
|
- sensor.temperature_158d000149c128
|
||||||
exclude_entities:
|
exclude_entities:
|
||||||
- switch.plug_158d00010dd98d
|
- switch.plug_158d00010dd98d
|
||||||
|
- switch.xiaomi_miio_switch
|
||||||
|
|||||||
Reference in New Issue
Block a user