From 88c68449be2251faff6616fdb74f2b153fc4f8c4 Mon Sep 17 00:00:00 2001 From: monster Date: Tue, 1 Jan 2019 17:11:50 +0300 Subject: [PATCH] epd fix --- appdaemon/settings/apps/sensors/mosru.py | 3 +++ hass/settings/configuration/homekit/homekit.yaml | 1 + 2 files changed, 4 insertions(+) diff --git a/appdaemon/settings/apps/sensors/mosru.py b/appdaemon/settings/apps/sensors/mosru.py index edf6f47..68a4646 100644 --- a/appdaemon/settings/apps/sensors/mosru.py +++ b/appdaemon/settings/apps/sensors/mosru.py @@ -264,6 +264,9 @@ class MosruEpd(MosruBase): if epd != []: break 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] data[date_str] = epd_first # epd_total = epd_first['amount'] diff --git a/hass/settings/configuration/homekit/homekit.yaml b/hass/settings/configuration/homekit/homekit.yaml index ca3aaa5..71a6748 100644 --- a/hass/settings/configuration/homekit/homekit.yaml +++ b/hass/settings/configuration/homekit/homekit.yaml @@ -16,3 +16,4 @@ filter: - sensor.temperature_158d000149c128 exclude_entities: - switch.plug_158d00010dd98d + - switch.xiaomi_miio_switch