Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate Speedtest.net to new entity naming style #75004

Merged
merged 1 commit into from Jul 11, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion homeassistant/components/speedtestdotnet/sensor.py
Expand Up @@ -49,6 +49,7 @@ class SpeedtestSensor(
"""Implementation of a speedtest.net sensor."""

entity_description: SpeedtestSensorEntityDescription
_attr_has_entity_name = True
_attr_icon = ICON

def __init__(
Expand All @@ -59,7 +60,6 @@ def __init__(
"""Initialize the sensor."""
super().__init__(coordinator)
self.entity_description = description
self._attr_name = f"{DEFAULT_NAME} {description.name}"
self._attr_unique_id = description.key
self._state: StateType = None
self._attrs = {ATTR_ATTRIBUTION: ATTRIBUTION}
Expand Down