diff --git a/homeassistant/components/plugwise/entity.py b/homeassistant/components/plugwise/entity.py index 0b859c756d2d..f9a4a9c80e1d 100644 --- a/homeassistant/components/plugwise/entity.py +++ b/homeassistant/components/plugwise/entity.py @@ -37,9 +37,7 @@ class PlugwiseEntity(CoordinatorEntity[PlugwiseDataUpdateCoordinator]): # Link configuration-URL for the gateway device configuration_url = ( - f"http://{entry.data[CONF_HOST]}" - if device_id == gateway_id and entry - else None + f"http://{entry.data[CONF_HOST]}" if device_id == gateway_id else None ) # Build connections set