diff --git a/homeassistant/components/powerwall/entity.py b/homeassistant/components/powerwall/entity.py index 0411f956bdc..04bb75fd47a 100644 --- a/homeassistant/components/powerwall/entity.py +++ b/homeassistant/components/powerwall/entity.py @@ -9,7 +9,6 @@ from .const import ( POWERWALL_SITE_NAME, SITE_INFO_GRID_CODE, SITE_INFO_NOMINAL_SYSTEM_ENERGY_KWH, - SITE_INFO_NOMINAL_SYSTEM_POWER_KW, SITE_INFO_UTILITY, ) @@ -26,7 +25,6 @@ class PowerWallEntity(Entity): unique_group = ( site_info[SITE_INFO_UTILITY], site_info[SITE_INFO_GRID_CODE], - str(site_info[SITE_INFO_NOMINAL_SYSTEM_POWER_KW]), str(site_info[SITE_INFO_NOMINAL_SYSTEM_ENERGY_KWH]), ) self.base_unique_id = "_".join(unique_group) diff --git a/tests/components/powerwall/test_sensor.py b/tests/components/powerwall/test_sensor.py index ea74f33671f..090e5dac445 100644 --- a/tests/components/powerwall/test_sensor.py +++ b/tests/components/powerwall/test_sensor.py @@ -24,7 +24,7 @@ async def test_sensors(hass): device_registry = await hass.helpers.device_registry.async_get_registry() reg_device = device_registry.async_get_device( - identifiers={("powerwall", "Wom Energy_60Hz_240V_s_IEEE1547a_2014_25_13.5")}, + identifiers={("powerwall", "Wom Energy_60Hz_240V_s_IEEE1547a_2014_13.5")}, connections=set(), ) assert reg_device.model == "PowerWall 2"