Add icon translations to Speedtestdotnet (#112237)

This commit is contained in:
Joost Lekkerkerker 2024-03-05 08:50:59 +01:00 committed by GitHub
parent 0e0c1d337f
commit 14eba0e7ad
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 15 additions and 4 deletions

View file

@ -20,5 +20,3 @@ DEFAULT_SCAN_INTERVAL: Final = 60
DEFAULT_SERVER: Final = "*Auto Detect"
ATTRIBUTION: Final = "Data retrieved from Speedtest.net by Ookla"
ICON: Final = "mdi:speedometer"

View file

@ -0,0 +1,15 @@
{
"entity": {
"sensor": {
"ping": {
"default": "mdi:speedometer"
},
"download": {
"default": "mdi:speedometer"
},
"upload": {
"default": "mdi:speedometer"
}
}
}
}

View file

@ -28,7 +28,6 @@ from .const import (
ATTRIBUTION,
DEFAULT_NAME,
DOMAIN,
ICON,
)
from .coordinator import SpeedTestDataCoordinator
@ -86,7 +85,6 @@ class SpeedtestSensor(CoordinatorEntity[SpeedTestDataCoordinator], SensorEntity)
entity_description: SpeedtestSensorEntityDescription
_attr_attribution = ATTRIBUTION
_attr_has_entity_name = True
_attr_icon = ICON
def __init__(
self,