From 3b40bb7d2838f931b22b5d40996c722aca867f66 Mon Sep 17 00:00:00 2001 From: Joost Lekkerkerker Date: Fri, 6 Feb 2026 13:39:51 +0100 Subject: [PATCH] Remove entity id overwrite for ambient station (#162403) --- .../components/ambient_station/sensor.py | 19 +------------------ 1 file changed, 1 insertion(+), 18 deletions(-) diff --git a/homeassistant/components/ambient_station/sensor.py b/homeassistant/components/ambient_station/sensor.py index 1b4334774d4..40a380d122e 100644 --- a/homeassistant/components/ambient_station/sensor.py +++ b/homeassistant/components/ambient_station/sensor.py @@ -26,10 +26,9 @@ from homeassistant.const import ( UnitOfVolumetricFlux, ) from homeassistant.core import HomeAssistant, callback -from homeassistant.helpers.entity import EntityDescription from homeassistant.helpers.entity_platform import AddConfigEntryEntitiesCallback -from . import AmbientStation, AmbientStationConfigEntry +from . import AmbientStationConfigEntry from .const import ATTR_LAST_DATA, TYPE_SOLARRADIATION, TYPE_SOLARRADIATION_LX from .entity import AmbientWeatherEntity @@ -683,22 +682,6 @@ async def async_setup_entry( class AmbientWeatherSensor(AmbientWeatherEntity, SensorEntity): """Define an Ambient sensor.""" - def __init__( - self, - ambient: AmbientStation, - mac_address: str, - station_name: str, - description: EntityDescription, - ) -> None: - """Initialize the sensor.""" - super().__init__(ambient, mac_address, station_name, description) - - if description.key == TYPE_SOLARRADIATION_LX: - # Since TYPE_SOLARRADIATION and TYPE_SOLARRADIATION_LX will have the same - # name in the UI, we influence the entity ID of TYPE_SOLARRADIATION_LX here - # to differentiate them: - self.entity_id = f"sensor.{station_name}_solar_rad_lx" - @callback def update_from_latest_data(self) -> None: """Fetch new state data for the sensor."""