This commit is contained in:
monster
2019-01-01 17:11:50 +03:00
parent adc65c950a
commit 88c68449be
2 changed files with 4 additions and 0 deletions
+3
View File
@@ -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