diff --git a/homeassistant/components/senseme/config_flow.py b/homeassistant/components/senseme/config_flow.py index adaa7ef036a..8bf0eec3a96 100644 --- a/homeassistant/components/senseme/config_flow.py +++ b/homeassistant/components/senseme/config_flow.py @@ -41,10 +41,9 @@ class SensemeFlowHandler(config_entries.ConfigFlow, domain=DOMAIN): return self.async_abort(reason="already_configured") if entry.unique_id != uuid: continue - if entry.data[CONF_INFO]["address"] != host: - self.hass.config_entries.async_update_entry( - entry, data={CONF_INFO: {**entry.data[CONF_INFO], "address": host}} - ) + self.hass.config_entries.async_update_entry( + entry, data={CONF_INFO: {**entry.data[CONF_INFO], "address": host}} + ) return self.async_abort(reason="already_configured") self._discovered_device = device return await self.async_step_discovery_confirm() diff --git a/homeassistant/components/senseme/entity.py b/homeassistant/components/senseme/entity.py index 3682938b954..9e0ca412628 100644 --- a/homeassistant/components/senseme/entity.py +++ b/homeassistant/components/senseme/entity.py @@ -27,14 +27,6 @@ class SensemeEntity(Entity): ) self._async_update_attrs() - @property - def extra_state_attributes(self) -> dict: - """Get the current device state attributes.""" - return { - "room_name": self._device.room_name, - "room_type": self._device.room_type, - } - @callback def _async_update_attrs(self) -> None: """Update attrs from device.""" diff --git a/homeassistant/components/senseme/fan.py b/homeassistant/components/senseme/fan.py index 13e76077f21..71b13ff4a17 100644 --- a/homeassistant/components/senseme/fan.py +++ b/homeassistant/components/senseme/fan.py @@ -82,7 +82,6 @@ class HASensemeFan(SensemeEntity, FanEntity): return { "auto_comfort": self._device.fan_autocomfort.capitalize(), "smartmode": self._device.fan_smartmode.capitalize(), - **super().extra_state_attributes, } async def async_set_percentage(self, percentage: int) -> None: diff --git a/tests/components/senseme/test_config_flow.py b/tests/components/senseme/test_config_flow.py index 12d61660fc9..71ce385e543 100644 --- a/tests/components/senseme/test_config_flow.py +++ b/tests/components/senseme/test_config_flow.py @@ -88,6 +88,7 @@ async def test_form_user_manual_entry(hass: HomeAssistant) -> None: ) await hass.async_block_till_done() + assert result3["type"] == RESULT_TYPE_CREATE_ENTRY assert result3["title"] == "Haiku Fan" assert result3["data"] == { "info": MOCK_DEVICE.get_device_info, @@ -131,6 +132,7 @@ async def test_form_user_no_discovery(hass: HomeAssistant) -> None: ) await hass.async_block_till_done() + assert result3["type"] == RESULT_TYPE_CREATE_ENTRY assert result3["title"] == "Haiku Fan" assert result3["data"] == { "info": MOCK_DEVICE.get_device_info,