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