From 1fffa748e548b5bbe946165619df52b940e4a913 Mon Sep 17 00:00:00 2001 From: Simone Chemelli Date: Sun, 6 Sep 2020 00:17:10 +0200 Subject: [PATCH] Improve handling of DHCP devices (#39683) --- homeassistant/components/shelly/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homeassistant/components/shelly/__init__.py b/homeassistant/components/shelly/__init__.py index ebc3d287e5e..8c83d9ee6e9 100644 --- a/homeassistant/components/shelly/__init__.py +++ b/homeassistant/components/shelly/__init__.py @@ -69,7 +69,7 @@ class ShellyDeviceWrapper(update_coordinator.DataUpdateCoordinator): super().__init__( hass, _LOGGER, - name=device.settings["name"] or entry.title, + name=device.settings["name"] or device.settings["device"]["hostname"], update_interval=timedelta(seconds=5), ) self.hass = hass