Improve handling of DHCP devices (#39683)

This commit is contained in:
Simone Chemelli 2020-09-06 00:17:10 +02:00 committed by GitHub
parent 74fea6d306
commit 1fffa748e5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -69,7 +69,7 @@ class ShellyDeviceWrapper(update_coordinator.DataUpdateCoordinator):
super().__init__( super().__init__(
hass, hass,
_LOGGER, _LOGGER,
name=device.settings["name"] or entry.title, name=device.settings["name"] or device.settings["device"]["hostname"],
update_interval=timedelta(seconds=5), update_interval=timedelta(seconds=5),
) )
self.hass = hass self.hass = hass