Fix netgear NoneType and discovery (#57904)

This commit is contained in:
starkillerOG 2021-10-18 12:01:58 +02:00 committed by GitHub
parent 55c80b4093
commit 04f51e599a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 1 deletions

View file

@ -199,6 +199,9 @@ class NetgearRouter:
ntg_devices = await self.async_get_attached_devices()
now = dt_util.utcnow()
if ntg_devices is None:
return
if _LOGGER.isEnabledFor(logging.DEBUG):
_LOGGER.debug("Netgear scan result: \n%s", ntg_devices)