Remove attribution from extra state attributes (#76580)
This commit is contained in:
parent
8ecbb85852
commit
dbfba3a951
6 changed files with 17 additions and 26 deletions
|
@ -5,7 +5,6 @@ from typing import Any, cast
|
|||
|
||||
from homeassistant.components.sensor import SensorEntity
|
||||
from homeassistant.config_entries import ConfigEntry
|
||||
from homeassistant.const import ATTR_ATTRIBUTION
|
||||
from homeassistant.core import HomeAssistant
|
||||
from homeassistant.helpers.device_registry import DeviceEntryType
|
||||
from homeassistant.helpers.entity import DeviceInfo
|
||||
|
@ -49,6 +48,7 @@ class SpeedtestSensor(
|
|||
"""Implementation of a speedtest.net sensor."""
|
||||
|
||||
entity_description: SpeedtestSensorEntityDescription
|
||||
_attr_attribution = ATTRIBUTION
|
||||
_attr_has_entity_name = True
|
||||
_attr_icon = ICON
|
||||
|
||||
|
@ -62,7 +62,7 @@ class SpeedtestSensor(
|
|||
self.entity_description = description
|
||||
self._attr_unique_id = description.key
|
||||
self._state: StateType = None
|
||||
self._attrs = {ATTR_ATTRIBUTION: ATTRIBUTION}
|
||||
self._attrs: dict[str, Any] = {}
|
||||
self._attr_device_info = DeviceInfo(
|
||||
identifiers={(DOMAIN, self.coordinator.config_entry.entry_id)},
|
||||
name=DEFAULT_NAME,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue