deCONZ support Xiaomi vibration sensor (#22366)

* Martin pointed out in previous PR that no ending '.' in logging

* Add support for Xiaomi vibration sensor
This commit is contained in:
Robert Svensson authored and Jason Hu committed 2019-03-25 23:43:58 -07:00
1 parent 73b38572f0
commit 79445a7ccc
5 files changed
+14 -6

No files matched your search

+2 -2
View File
@@ -44,7 +44,7 @@ class DeconzGateway:
raise ConfigEntryNotReady
except Exception: # pylint: disable=broad-except
_LOGGER.error('Error connecting with deCONZ gateway.')
_LOGGER.error('Error connecting with deCONZ gateway')
return False
for component in SUPPORTED_PLATFORMS:
@@ -135,7 +135,7 @@ async def get_gateway(hass, config, async_add_device_callback,
return deconz
except errors.Unauthorized:
_LOGGER.warning("Invalid key for deCONZ at %s.", config[CONF_HOST])
_LOGGER.warning("Invalid key for deCONZ at %s", config[CONF_HOST])
raise AuthenticationRequired
except (asyncio.TimeoutError, errors.RequestError):