File tree 2 files changed +5
-4
lines changed
custom_components/medisafe
2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change 17
17
from homeassistant .config_entries import ConfigEntry
18
18
from homeassistant .core import Config
19
19
from homeassistant .core import HomeAssistant
20
- from homeassistant .exceptions import ConfigEntryAuthFailed
21
20
from homeassistant .helpers .aiohttp_client import async_get_clientsession
22
21
from homeassistant .helpers .update_coordinator import DataUpdateCoordinator
23
22
from homeassistant .helpers .update_coordinator import UpdateFailed
29
28
from .const import PLATFORMS
30
29
from .const import STARTUP_MESSAGE
31
30
31
+ # from homeassistant.exceptions import ConfigEntryAuthFailed
32
+
32
33
SCAN_INTERVAL = timedelta (minutes = 15 )
33
34
34
35
_LOGGER : logging .Logger = logging .getLogger (__package__ )
@@ -77,8 +78,8 @@ async def _async_update_data(self):
77
78
"""Update data via library."""
78
79
try :
79
80
return await self .config_entry .runtime_data .client .async_get_data ()
80
- except ConfigEntryAuthFailed as exception :
81
- raise exception
81
+ # except ConfigEntryAuthFailed as exception:
82
+ # raise exception
82
83
except Exception as exception :
83
84
raise UpdateFailed () from exception
84
85
Original file line number Diff line number Diff line change 14
14
NAME = "Medisafe"
15
15
DOMAIN = "medisafe"
16
16
DOMAIN_DATA = f"{ DOMAIN } _data"
17
- VERSION = "0.1.2 "
17
+ VERSION = "0.1.3 "
18
18
19
19
ATTRIBUTION = "Data provided by https://medisafe.com/"
20
20
ISSUE_URL = "https://github.com/c99koder/ha-medisafe/issues"
You can’t perform that action at this time.
0 commit comments