Update icons for MDI 6 (#56170)

pull/55921/head
Bram Kragten 2021-09-13 19:29:38 +02:00 committed by GitHub
parent 5f86388f1c
commit 86d24bec75
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 11 additions and 11 deletions

View File

@ -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"

View File

@ -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",

View File

@ -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",

View File

@ -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"]),
}

View File

@ -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."""

View File

@ -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")

View File

@ -22,7 +22,7 @@ DATA_SENSORS = (
SensorEntityDescription(
key="date",
name="Date",
icon="mdi:judaism",
icon="mdi:star-david",
),
SensorEntityDescription(
key="weekly_portion",