From c85f70b639acd7197841247c45919cb156048230 Mon Sep 17 00:00:00 2001 From: Simone Chemelli Date: Sat, 8 May 2021 05:14:41 +0200 Subject: [PATCH] Small code cleanup for Shelly (#50270) --- homeassistant/components/shelly/utils.py | 1 - 1 file changed, 1 deletion(-) diff --git a/homeassistant/components/shelly/utils.py b/homeassistant/components/shelly/utils.py index 7fabdb9bf8b..2490eceaba5 100644 --- a/homeassistant/components/shelly/utils.py +++ b/homeassistant/components/shelly/utils.py @@ -192,7 +192,6 @@ def get_device_wrapper(hass: HomeAssistant, device_id: str): async def get_coap_context(hass): """Get CoAP context to be used in all Shelly devices.""" context = aioshelly.COAP() - port = DEFAULT_COAP_PORT if DOMAIN in hass.data: port = hass.data[DOMAIN].get(CONF_COAP_PORT, DEFAULT_COAP_PORT) else: