mirror of
https://github.com/home-assistant/core.git
synced 2025-07-17 10:17:09 +00:00
Add icon translations to Speedtestdotnet (#112237)
This commit is contained in:
parent
0e0c1d337f
commit
14eba0e7ad
@ -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"
|
||||
|
15
homeassistant/components/speedtestdotnet/icons.json
Normal file
15
homeassistant/components/speedtestdotnet/icons.json
Normal file
@ -0,0 +1,15 @@
|
||||
{
|
||||
"entity": {
|
||||
"sensor": {
|
||||
"ping": {
|
||||
"default": "mdi:speedometer"
|
||||
},
|
||||
"download": {
|
||||
"default": "mdi:speedometer"
|
||||
},
|
||||
"upload": {
|
||||
"default": "mdi:speedometer"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user