Update icons for MDI 6 (#56170)
parent
5f86388f1c
commit
86d24bec75
|
@ -31,7 +31,7 @@ CURRENCY_ICONS = {
|
|||
"USD": "mdi:currency-usd",
|
||||
}
|
||||
|
||||
DEFAULT_COIN_ICON = "mdi:currency-usd-circle"
|
||||
DEFAULT_COIN_ICON = "mdi:cash"
|
||||
|
||||
ATTRIBUTION = "Data provided by coinbase.com"
|
||||
|
||||
|
|
|
@ -52,7 +52,7 @@ SENSOR_TYPES: tuple[SensorEntityDescription, ...] = (
|
|||
key="balance",
|
||||
name="Balance",
|
||||
native_unit_of_measurement=PRICE,
|
||||
icon="mdi:cash-usd",
|
||||
icon="mdi:cash",
|
||||
),
|
||||
SensorEntityDescription(
|
||||
key="limit",
|
||||
|
|
|
@ -44,13 +44,13 @@ SENSOR_TYPES: tuple[SensorEntityDescription, ...] = (
|
|||
key="fido_dollar",
|
||||
name="Fido dollar",
|
||||
native_unit_of_measurement=PRICE,
|
||||
icon="mdi:cash-usd",
|
||||
icon="mdi:cash",
|
||||
),
|
||||
SensorEntityDescription(
|
||||
key="balance",
|
||||
name="Balance",
|
||||
native_unit_of_measurement=PRICE,
|
||||
icon="mdi:cash-usd",
|
||||
icon="mdi:cash",
|
||||
),
|
||||
SensorEntityDescription(
|
||||
key="data_used",
|
||||
|
|
|
@ -26,7 +26,7 @@ SENSORS_TYPES = {
|
|||
"exp": ST("EXP", "mdi:star", "EXP", ["stats", "exp"]),
|
||||
"toNextLevel": ST("Next Lvl", "mdi:star", "EXP", ["stats", "toNextLevel"]),
|
||||
"lvl": ST("Lvl", "mdi:arrow-up-bold-circle-outline", "Lvl", ["stats", "lvl"]),
|
||||
"gp": ST("Gold", "mdi:currency-usd-circle", "Gold", ["stats", "gp"]),
|
||||
"gp": ST("Gold", "mdi:circle-multiple", "Gold", ["stats", "gp"]),
|
||||
"class": ST("Class", "mdi:sword", "", ["stats", "class"]),
|
||||
}
|
||||
|
||||
|
|
|
@ -238,7 +238,7 @@ class HMHub(Entity):
|
|||
@property
|
||||
def icon(self):
|
||||
"""Return the icon to use in the frontend, if any."""
|
||||
return "mdi:gradient"
|
||||
return "mdi:gradient-vertical"
|
||||
|
||||
def _update_hub(self, now):
|
||||
"""Retrieve latest state."""
|
||||
|
|
|
@ -134,13 +134,13 @@ class IcloudTrackerEntity(TrackerEntity):
|
|||
|
||||
|
||||
def icon_for_icloud_device(icloud_device: IcloudDevice) -> str:
|
||||
"""Return a battery icon valid identifier."""
|
||||
"""Return an icon for the device."""
|
||||
switcher = {
|
||||
"iPad": "mdi:tablet-ipad",
|
||||
"iPhone": "mdi:cellphone-iphone",
|
||||
"iPad": "mdi:tablet",
|
||||
"iPhone": "mdi:cellphone",
|
||||
"iPod": "mdi:ipod",
|
||||
"iMac": "mdi:desktop-mac",
|
||||
"MacBookPro": "mdi:laptop-mac",
|
||||
"MacBookPro": "mdi:laptop",
|
||||
}
|
||||
|
||||
return switcher.get(icloud_device.device_class, "mdi:cellphone-link")
|
||||
|
|
|
@ -22,7 +22,7 @@ DATA_SENSORS = (
|
|||
SensorEntityDescription(
|
||||
key="date",
|
||||
name="Date",
|
||||
icon="mdi:judaism",
|
||||
icon="mdi:star-david",
|
||||
),
|
||||
SensorEntityDescription(
|
||||
key="weekly_portion",
|
||||
|
|
Loading…
Reference in New Issue