Add icon translations to Speedtestdotnet (#112237)
This commit is contained in:
parent
0e0c1d337f
commit
14eba0e7ad
3 changed files with 15 additions and 4 deletions
|
@ -20,5 +20,3 @@ DEFAULT_SCAN_INTERVAL: Final = 60
|
||||||
DEFAULT_SERVER: Final = "*Auto Detect"
|
DEFAULT_SERVER: Final = "*Auto Detect"
|
||||||
|
|
||||||
ATTRIBUTION: Final = "Data retrieved from Speedtest.net by Ookla"
|
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,
|
ATTRIBUTION,
|
||||||
DEFAULT_NAME,
|
DEFAULT_NAME,
|
||||||
DOMAIN,
|
DOMAIN,
|
||||||
ICON,
|
|
||||||
)
|
)
|
||||||
from .coordinator import SpeedTestDataCoordinator
|
from .coordinator import SpeedTestDataCoordinator
|
||||||
|
|
||||||
|
@ -86,7 +85,6 @@ class SpeedtestSensor(CoordinatorEntity[SpeedTestDataCoordinator], SensorEntity)
|
||||||
entity_description: SpeedtestSensorEntityDescription
|
entity_description: SpeedtestSensorEntityDescription
|
||||||
_attr_attribution = ATTRIBUTION
|
_attr_attribution = ATTRIBUTION
|
||||||
_attr_has_entity_name = True
|
_attr_has_entity_name = True
|
||||||
_attr_icon = ICON
|
|
||||||
|
|
||||||
def __init__(
|
def __init__(
|
||||||
self,
|
self,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue