Adjust icons for MDI bump (#37730)
This commit is contained in:
parent
5cd6370822
commit
9ecaa10e51
28 changed files with 84 additions and 68 deletions
|
@ -36,13 +36,13 @@ SENSOR_TYPES = {
|
|||
"battv": ["Battery Voltage", VOLT, "mdi:flash"],
|
||||
"bcharge": ["Battery", UNIT_PERCENTAGE, "mdi:battery"],
|
||||
"cable": ["Cable Type", "", "mdi:ethernet-cable"],
|
||||
"cumonbatt": ["Total Time on Battery", "", "mdi:timer"],
|
||||
"cumonbatt": ["Total Time on Battery", "", "mdi:timer-outline"],
|
||||
"date": ["Status Date", "", "mdi:calendar-clock"],
|
||||
"dipsw": ["Dip Switch Settings", "", "mdi:information-outline"],
|
||||
"dlowbatt": ["Low Battery Signal", "", "mdi:clock-alert"],
|
||||
"driver": ["Driver", "", "mdi:information-outline"],
|
||||
"dshutd": ["Shutdown Delay", "", "mdi:timer"],
|
||||
"dwake": ["Wake Delay", "", "mdi:timer"],
|
||||
"dshutd": ["Shutdown Delay", "", "mdi:timer-outline"],
|
||||
"dwake": ["Wake Delay", "", "mdi:timer-outline"],
|
||||
"endapc": ["Date and Time", "", "mdi:calendar-clock"],
|
||||
"extbatts": ["External Batteries", "", "mdi:information-outline"],
|
||||
"firmware": ["Firmware Version", "", "mdi:information-outline"],
|
||||
|
@ -60,10 +60,10 @@ SENSOR_TYPES = {
|
|||
"mandate": ["Manufacture Date", "", "mdi:calendar"],
|
||||
"masterupd": ["Master Update", "", "mdi:information-outline"],
|
||||
"maxlinev": ["Input Voltage High", VOLT, "mdi:flash"],
|
||||
"maxtime": ["Battery Timeout", "", "mdi:timer-off"],
|
||||
"maxtime": ["Battery Timeout", "", "mdi:timer-off-outline"],
|
||||
"mbattchg": ["Battery Shutdown", UNIT_PERCENTAGE, "mdi:battery-alert"],
|
||||
"minlinev": ["Input Voltage Low", VOLT, "mdi:flash"],
|
||||
"mintimel": ["Shutdown Time", "", "mdi:timer"],
|
||||
"mintimel": ["Shutdown Time", "", "mdi:timer-outline"],
|
||||
"model": ["Model", "", "mdi:information-outline"],
|
||||
"nombattv": ["Battery Nominal Voltage", VOLT, "mdi:flash"],
|
||||
"nominv": ["Nominal Input Voltage", VOLT, "mdi:flash"],
|
||||
|
@ -85,7 +85,7 @@ SENSOR_TYPES = {
|
|||
"status": ["Status", "", "mdi:information-outline"],
|
||||
"stesti": ["Self Test Interval", "", "mdi:information-outline"],
|
||||
"timeleft": ["Time Left", "", "mdi:clock-alert"],
|
||||
"tonbatt": ["Time on Battery", "", "mdi:timer"],
|
||||
"tonbatt": ["Time on Battery", "", "mdi:timer-outline"],
|
||||
"upsmode": ["Mode", "", "mdi:information-outline"],
|
||||
"upsname": ["Name", "", "mdi:information-outline"],
|
||||
"version": ["Daemon Info", "", "mdi:information-outline"],
|
||||
|
|
|
@ -163,7 +163,7 @@ SENSOR_TYPES = {
|
|||
ATTR_UNIT: UNIT_PERCENTAGE,
|
||||
},
|
||||
ATTR_UPTIME: {
|
||||
ATTR_ICON: "mdi:timer",
|
||||
ATTR_ICON: "mdi:timer-outline",
|
||||
ATTR_LABEL: ATTR_UPTIME.title(),
|
||||
ATTR_UNIT: TIME_DAYS,
|
||||
},
|
||||
|
|
|
@ -78,7 +78,7 @@ class CO2Sensor(Entity):
|
|||
@property
|
||||
def icon(self):
|
||||
"""Icon to use in the frontend, if any."""
|
||||
return "mdi:periodic-table-co2"
|
||||
return "mdi:molecule-co2"
|
||||
|
||||
@property
|
||||
def state(self):
|
||||
|
|
|
@ -12,7 +12,7 @@ CURRENCY_ICONS = {
|
|||
"USD": "mdi:currency-usd",
|
||||
}
|
||||
|
||||
DEFAULT_COIN_ICON = "mdi:coin"
|
||||
DEFAULT_COIN_ICON = "mdi:currency-usd-circle"
|
||||
|
||||
ATTRIBUTION = "Data provided by coinbase.com"
|
||||
|
||||
|
|
|
@ -40,7 +40,7 @@ ACTION_DELETE = "delete"
|
|||
async def async_setup(hass, config):
|
||||
"""Set up the config component."""
|
||||
hass.components.frontend.async_register_built_in_panel(
|
||||
"config", "config", "hass:settings", require_admin=True
|
||||
"config", "config", "hass:cog", require_admin=True
|
||||
)
|
||||
|
||||
async def setup_panel(panel_name):
|
||||
|
|
|
@ -37,7 +37,7 @@ MIN_TIME_BETWEEN_UPDATES = timedelta(minutes=15)
|
|||
|
||||
SENSOR_TYPES = {
|
||||
"usage": ["Usage", UNIT_PERCENTAGE, "mdi:percent"],
|
||||
"balance": ["Balance", PRICE, "mdi:square-inc-cash"],
|
||||
"balance": ["Balance", PRICE, "mdi:cash-usd"],
|
||||
"limit": ["Data limit", DATA_GIGABITS, "mdi:download"],
|
||||
"days_left": ["Days left", TIME_DAYS, "mdi:calendar-today"],
|
||||
"before_offpeak_download": [
|
||||
|
|
|
@ -41,13 +41,13 @@ SENSOR_TYPES = {
|
|||
"HolidayTemperature": ["HolidayTemp", TEMP_CELSIUS, "mdi:thermometer", 0],
|
||||
"HWTemperatureDesired": ["HwcTempDesired", TEMP_CELSIUS, "mdi:thermometer", 0],
|
||||
"HWActualTemperature": ["HwcStorageTemp", TEMP_CELSIUS, "mdi:thermometer", 0],
|
||||
"HWTimerMonday": ["hwcTimer.Monday", None, "mdi:timer", 1],
|
||||
"HWTimerTuesday": ["hwcTimer.Tuesday", None, "mdi:timer", 1],
|
||||
"HWTimerWednesday": ["hwcTimer.Wednesday", None, "mdi:timer", 1],
|
||||
"HWTimerThursday": ["hwcTimer.Thursday", None, "mdi:timer", 1],
|
||||
"HWTimerFriday": ["hwcTimer.Friday", None, "mdi:timer", 1],
|
||||
"HWTimerSaturday": ["hwcTimer.Saturday", None, "mdi:timer", 1],
|
||||
"HWTimerSunday": ["hwcTimer.Sunday", None, "mdi:timer", 1],
|
||||
"HWTimerMonday": ["hwcTimer.Monday", None, "mdi:timer-outline", 1],
|
||||
"HWTimerTuesday": ["hwcTimer.Tuesday", None, "mdi:timer-outline", 1],
|
||||
"HWTimerWednesday": ["hwcTimer.Wednesday", None, "mdi:timer-outline", 1],
|
||||
"HWTimerThursday": ["hwcTimer.Thursday", None, "mdi:timer-outline", 1],
|
||||
"HWTimerFriday": ["hwcTimer.Friday", None, "mdi:timer-outline", 1],
|
||||
"HWTimerSaturday": ["hwcTimer.Saturday", None, "mdi:timer-outline", 1],
|
||||
"HWTimerSunday": ["hwcTimer.Sunday", None, "mdi:timer-outline", 1],
|
||||
"HWOperativeMode": ["HwcOpMode", None, "mdi:math-compass", 3],
|
||||
"WaterPressure": ["WaterPressure", PRESSURE_BAR, "mdi:water-pump", 0],
|
||||
"Zone1RoomZoneMapping": ["z1RoomZoneMapping", None, "mdi:label", 0],
|
||||
|
@ -66,13 +66,13 @@ SENSOR_TYPES = {
|
|||
"mdi:thermometer",
|
||||
0,
|
||||
],
|
||||
"Zone1TimerMonday": ["z1Timer.Monday", None, "mdi:timer", 1],
|
||||
"Zone1TimerTuesday": ["z1Timer.Tuesday", None, "mdi:timer", 1],
|
||||
"Zone1TimerWednesday": ["z1Timer.Wednesday", None, "mdi:timer", 1],
|
||||
"Zone1TimerThursday": ["z1Timer.Thursday", None, "mdi:timer", 1],
|
||||
"Zone1TimerFriday": ["z1Timer.Friday", None, "mdi:timer", 1],
|
||||
"Zone1TimerSaturday": ["z1Timer.Saturday", None, "mdi:timer", 1],
|
||||
"Zone1TimerSunday": ["z1Timer.Sunday", None, "mdi:timer", 1],
|
||||
"Zone1TimerMonday": ["z1Timer.Monday", None, "mdi:timer-outline", 1],
|
||||
"Zone1TimerTuesday": ["z1Timer.Tuesday", None, "mdi:timer-outline", 1],
|
||||
"Zone1TimerWednesday": ["z1Timer.Wednesday", None, "mdi:timer-outline", 1],
|
||||
"Zone1TimerThursday": ["z1Timer.Thursday", None, "mdi:timer-outline", 1],
|
||||
"Zone1TimerFriday": ["z1Timer.Friday", None, "mdi:timer-outline", 1],
|
||||
"Zone1TimerSaturday": ["z1Timer.Saturday", None, "mdi:timer-outline", 1],
|
||||
"Zone1TimerSunday": ["z1Timer.Sunday", None, "mdi:timer-outline", 1],
|
||||
"Zone1OperativeMode": ["z1OpMode", None, "mdi:math-compass", 3],
|
||||
"ContinuosHeating": ["ContinuosHeating", TEMP_CELSIUS, "mdi:weather-snowy", 0],
|
||||
"PowerEnergyConsumptionLastMonth": [
|
||||
|
|
|
@ -35,8 +35,8 @@ REQUESTS_TIMEOUT = 15
|
|||
MIN_TIME_BETWEEN_UPDATES = timedelta(minutes=15)
|
||||
|
||||
SENSOR_TYPES = {
|
||||
"fido_dollar": ["Fido dollar", PRICE, "mdi:square-inc-cash"],
|
||||
"balance": ["Balance", PRICE, "mdi:square-inc-cash"],
|
||||
"fido_dollar": ["Fido dollar", PRICE, "mdi:cash-usd"],
|
||||
"balance": ["Balance", PRICE, "mdi:cash-usd"],
|
||||
"data_used": ["Data used", DATA_KILOBITS, "mdi:download"],
|
||||
"data_limit": ["Data limit", DATA_KILOBITS, "mdi:download"],
|
||||
"data_remaining": ["Data remaining", DATA_KILOBITS, "mdi:download"],
|
||||
|
|
|
@ -39,11 +39,7 @@ SENSOR_TYPES = {
|
|||
"pm": [ATTR_PM2_5, CONCENTRATION_MICROGRAMS_PER_CUBIC_METER, "mdi:cloud"],
|
||||
"tmp": [ATTR_TEMPERATURE, TEMP_CELSIUS, "mdi:thermometer"],
|
||||
"hum": [ATTR_HUMIDITY, UNIT_PERCENTAGE, "mdi:water-percent"],
|
||||
"co2": [
|
||||
ATTR_CARBON_DIOXIDE,
|
||||
CONCENTRATION_PARTS_PER_MILLION,
|
||||
"mdi:periodic-table-co2",
|
||||
],
|
||||
"co2": [ATTR_CARBON_DIOXIDE, CONCENTRATION_PARTS_PER_MILLION, "mdi:molecule-co2"],
|
||||
"voc": [
|
||||
ATTR_VOLATILE_ORGANIC_COMPOUNDS,
|
||||
CONCENTRATION_PARTS_PER_BILLION,
|
||||
|
|
|
@ -17,7 +17,7 @@ CONF_DESCRIPTION = "description"
|
|||
CONF_PRODUCT_ID = "product_id"
|
||||
CONF_LOCALE = "locale"
|
||||
|
||||
ICON = "mdi:coin"
|
||||
ICON = "mdi:currency-usd-circle"
|
||||
|
||||
MIN_TIME_BETWEEN_UPDATES = timedelta(seconds=120)
|
||||
|
||||
|
|
|
@ -149,7 +149,7 @@ class GitHubSensor(Entity):
|
|||
@property
|
||||
def icon(self):
|
||||
"""Return the icon to use in the frontend."""
|
||||
return "mdi:github-circle"
|
||||
return "mdi:github"
|
||||
|
||||
def update(self):
|
||||
"""Collect updated data from GitHub API."""
|
||||
|
|
|
@ -19,7 +19,7 @@ ATTR_USERNAME = "username"
|
|||
DEFAULT_NAME = "Gitter messages"
|
||||
DEFAULT_ROOM = "home-assistant/home-assistant"
|
||||
|
||||
ICON = "mdi:message-settings-variant"
|
||||
ICON = "mdi:message-cog"
|
||||
|
||||
PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend(
|
||||
{
|
||||
|
|
|
@ -27,7 +27,7 @@ SENSORS = [
|
|||
None,
|
||||
TEMP_FAHRENHEIT,
|
||||
),
|
||||
(SENSOR_KIND_UPTIME, "Uptime", None, "mdi:timer", TIME_MINUTES),
|
||||
(SENSOR_KIND_UPTIME, "Uptime", None, "mdi:timer-outline", TIME_MINUTES),
|
||||
]
|
||||
|
||||
|
||||
|
|
|
@ -33,7 +33,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:coin", "Gold", ["stats", "gp"]),
|
||||
"gp": ST("Gold", "mdi:currency-usd-circle", "Gold", ["stats", "gp"]),
|
||||
"class": ST("Class", "mdi:sword", "", ["stats", "class"]),
|
||||
}
|
||||
|
||||
|
|
|
@ -17,7 +17,7 @@ from . import KNOWN_DEVICES, HomeKitEntity
|
|||
HUMIDITY_ICON = "mdi:water-percent"
|
||||
TEMP_C_ICON = "mdi:thermometer"
|
||||
BRIGHTNESS_ICON = "mdi:brightness-6"
|
||||
CO2_ICON = "mdi:periodic-table-co2"
|
||||
CO2_ICON = "mdi:molecule-co2"
|
||||
|
||||
UNIT_LUX = "lux"
|
||||
|
||||
|
|
|
@ -156,7 +156,7 @@ SENSOR_META = {
|
|||
exclude=re.compile(r"^showtraffic$", re.IGNORECASE)
|
||||
),
|
||||
(KEY_MONITORING_TRAFFIC_STATISTICS, "CurrentConnectTime"): dict(
|
||||
name="Current connection duration", unit=TIME_SECONDS, icon="mdi:timer"
|
||||
name="Current connection duration", unit=TIME_SECONDS, icon="mdi:timer-outline"
|
||||
),
|
||||
(KEY_MONITORING_TRAFFIC_STATISTICS, "CurrentDownload"): dict(
|
||||
name="Current connection download", unit=DATA_BYTES, icon="mdi:download"
|
||||
|
@ -165,7 +165,7 @@ SENSOR_META = {
|
|||
name="Current connection upload", unit=DATA_BYTES, icon="mdi:upload"
|
||||
),
|
||||
(KEY_MONITORING_TRAFFIC_STATISTICS, "TotalConnectTime"): dict(
|
||||
name="Total connected duration", unit=TIME_SECONDS, icon="mdi:timer"
|
||||
name="Total connected duration", unit=TIME_SECONDS, icon="mdi:timer-outline"
|
||||
),
|
||||
(KEY_MONITORING_TRAFFIC_STATISTICS, "TotalDownload"): dict(
|
||||
name="Total download", unit=DATA_BYTES, icon="mdi:download"
|
||||
|
|
|
@ -75,7 +75,7 @@ class JuiceNetSensorDevice(JuiceNetDevice, Entity):
|
|||
elif self.type == "watts":
|
||||
icon = "mdi:flash"
|
||||
elif self.type == "charge_time":
|
||||
icon = "mdi:timer"
|
||||
icon = "mdi:timer-outline"
|
||||
elif self.type == "energy_added":
|
||||
icon = "mdi:flash"
|
||||
return icon
|
||||
|
|
|
@ -23,7 +23,7 @@ STATE_NOT_SCROBBLING = "Not Scrobbling"
|
|||
|
||||
CONF_USERS = "users"
|
||||
|
||||
ICON = "mdi:lastfm"
|
||||
ICON = "mdi:radio-fm"
|
||||
|
||||
PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend(
|
||||
{
|
||||
|
|
|
@ -66,7 +66,7 @@ SENSOR_TYPES = {
|
|||
"mdi:thermometer",
|
||||
DEVICE_CLASS_TEMPERATURE,
|
||||
],
|
||||
"co2": ["CO2", CONCENTRATION_PARTS_PER_MILLION, "mdi:periodic-table-co2", None],
|
||||
"co2": ["CO2", CONCENTRATION_PARTS_PER_MILLION, "mdi:molecule-co2", None],
|
||||
"pressure": ["Pressure", "mbar", "mdi:gauge", None],
|
||||
"noise": ["Noise", "dB", "mdi:volume-high", None],
|
||||
"humidity": [
|
||||
|
|
|
@ -51,13 +51,28 @@ SENSOR_TYPES = {
|
|||
"ups.load": ["Load", UNIT_PERCENTAGE, "mdi:gauge", None],
|
||||
"ups.load.high": ["Overload Setting", UNIT_PERCENTAGE, "mdi:gauge", None],
|
||||
"ups.id": ["System identifier", "", "mdi:information-outline", None],
|
||||
"ups.delay.start": ["Load Restart Delay", TIME_SECONDS, "mdi:timer", None],
|
||||
"ups.delay.reboot": ["UPS Reboot Delay", TIME_SECONDS, "mdi:timer", None],
|
||||
"ups.delay.shutdown": ["UPS Shutdown Delay", TIME_SECONDS, "mdi:timer", None],
|
||||
"ups.timer.start": ["Load Start Timer", TIME_SECONDS, "mdi:timer", None],
|
||||
"ups.timer.reboot": ["Load Reboot Timer", TIME_SECONDS, "mdi:timer", None],
|
||||
"ups.timer.shutdown": ["Load Shutdown Timer", TIME_SECONDS, "mdi:timer", None],
|
||||
"ups.test.interval": ["Self-Test Interval", TIME_SECONDS, "mdi:timer", None],
|
||||
"ups.delay.start": ["Load Restart Delay", TIME_SECONDS, "mdi:timer-outline", None],
|
||||
"ups.delay.reboot": ["UPS Reboot Delay", TIME_SECONDS, "mdi:timer-outline", None],
|
||||
"ups.delay.shutdown": [
|
||||
"UPS Shutdown Delay",
|
||||
TIME_SECONDS,
|
||||
"mdi:timer-outline",
|
||||
None,
|
||||
],
|
||||
"ups.timer.start": ["Load Start Timer", TIME_SECONDS, "mdi:timer-outline", None],
|
||||
"ups.timer.reboot": ["Load Reboot Timer", TIME_SECONDS, "mdi:timer-outline", None],
|
||||
"ups.timer.shutdown": [
|
||||
"Load Shutdown Timer",
|
||||
TIME_SECONDS,
|
||||
"mdi:timer-outline",
|
||||
None,
|
||||
],
|
||||
"ups.test.interval": [
|
||||
"Self-Test Interval",
|
||||
TIME_SECONDS,
|
||||
"mdi:timer-outline",
|
||||
None,
|
||||
],
|
||||
"ups.test.result": ["Self-Test Result", "", "mdi:information-outline", None],
|
||||
"ups.test.date": ["Self-Test Date", "", "mdi:calendar", None],
|
||||
"ups.display.language": ["Language", "", "mdi:information-outline", None],
|
||||
|
@ -127,12 +142,17 @@ SENSOR_TYPES = {
|
|||
"mdi:thermometer",
|
||||
DEVICE_CLASS_TEMPERATURE,
|
||||
],
|
||||
"battery.runtime": ["Battery Runtime", TIME_SECONDS, "mdi:timer", None],
|
||||
"battery.runtime.low": ["Low Battery Runtime", TIME_SECONDS, "mdi:timer", None],
|
||||
"battery.runtime": ["Battery Runtime", TIME_SECONDS, "mdi:timer-outline", None],
|
||||
"battery.runtime.low": [
|
||||
"Low Battery Runtime",
|
||||
TIME_SECONDS,
|
||||
"mdi:timer-outline",
|
||||
None,
|
||||
],
|
||||
"battery.runtime.restart": [
|
||||
"Minimum Battery Runtime to Start",
|
||||
TIME_SECONDS,
|
||||
"mdi:timer",
|
||||
"mdi:timer-outline",
|
||||
None,
|
||||
],
|
||||
"battery.alarm.threshold": [
|
||||
|
|
|
@ -48,32 +48,32 @@ SENSORS = {
|
|||
TYPE_MAX_UV_INDEX: ("Max UV Index", "mdi:weather-sunny", UV_INDEX),
|
||||
TYPE_SAFE_EXPOSURE_TIME_1: (
|
||||
"Skin Type 1 Safe Exposure Time",
|
||||
"mdi:timer",
|
||||
"mdi:timer-outline",
|
||||
TIME_MINUTES,
|
||||
),
|
||||
TYPE_SAFE_EXPOSURE_TIME_2: (
|
||||
"Skin Type 2 Safe Exposure Time",
|
||||
"mdi:timer",
|
||||
"mdi:timer-outline",
|
||||
TIME_MINUTES,
|
||||
),
|
||||
TYPE_SAFE_EXPOSURE_TIME_3: (
|
||||
"Skin Type 3 Safe Exposure Time",
|
||||
"mdi:timer",
|
||||
"mdi:timer-outline",
|
||||
TIME_MINUTES,
|
||||
),
|
||||
TYPE_SAFE_EXPOSURE_TIME_4: (
|
||||
"Skin Type 4 Safe Exposure Time",
|
||||
"mdi:timer",
|
||||
"mdi:timer-outline",
|
||||
TIME_MINUTES,
|
||||
),
|
||||
TYPE_SAFE_EXPOSURE_TIME_5: (
|
||||
"Skin Type 5 Safe Exposure Time",
|
||||
"mdi:timer",
|
||||
"mdi:timer-outline",
|
||||
TIME_MINUTES,
|
||||
),
|
||||
TYPE_SAFE_EXPOSURE_TIME_6: (
|
||||
"Skin Type 6 Safe Exposure Time",
|
||||
"mdi:timer",
|
||||
"mdi:timer-outline",
|
||||
TIME_MINUTES,
|
||||
),
|
||||
}
|
||||
|
|
|
@ -49,7 +49,7 @@ SUPPORT_PS4 = (
|
|||
| SUPPORT_SELECT_SOURCE
|
||||
)
|
||||
|
||||
ICON = "mdi:playstation"
|
||||
ICON = "mdi:sony-playstation"
|
||||
MEDIA_IMAGE_DEFAULT = None
|
||||
|
||||
DEFAULT_RETRIES = 2
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
from . import SleepIQSensor
|
||||
from .const import DOMAIN, SENSOR_TYPES, SIDES, SLEEP_NUMBER
|
||||
|
||||
ICON = "mdi:hotel"
|
||||
ICON = "mdi:bed"
|
||||
|
||||
|
||||
def setup_platform(hass, config, add_entities, discovery_info=None):
|
||||
|
|
|
@ -30,12 +30,12 @@ SCAN_INTERVAL = timedelta(seconds=30)
|
|||
|
||||
# sensor_type [ description, unit, icon ]
|
||||
SENSOR_TYPES = {
|
||||
"last_build_id": ["Last Build ID", "", "mdi:account-card-details"],
|
||||
"last_build_id": ["Last Build ID", "", "mdi:card-account-details"],
|
||||
"last_build_duration": ["Last Build Duration", TIME_SECONDS, "mdi:timelapse"],
|
||||
"last_build_finished_at": ["Last Build Finished At", "", "mdi:timetable"],
|
||||
"last_build_started_at": ["Last Build Started At", "", "mdi:timetable"],
|
||||
"last_build_state": ["Last Build State", "", "mdi:github-circle"],
|
||||
"state": ["State", "", "mdi:github-circle"],
|
||||
"last_build_state": ["Last Build State", "", "mdi:github"],
|
||||
"state": ["State", "", "mdi:github"],
|
||||
}
|
||||
|
||||
NOTIFICATION_ID = "travisci"
|
||||
|
|
|
@ -27,7 +27,7 @@ SENSOR_TYPES = {
|
|||
},
|
||||
ATTR_BOOT_TIME: {
|
||||
ATTR_LABEL: "Boot time",
|
||||
ATTR_ICON: "mdi:timer",
|
||||
ATTR_ICON: "mdi:timer-outline",
|
||||
ATTR_API_DATA_FIELD: ATTR_API_DATA_FIELD_BOOT_TIME,
|
||||
ATTR_DEVICE_CLASS: DEVICE_CLASS_TIMESTAMP,
|
||||
},
|
||||
|
|
|
@ -450,7 +450,7 @@ WITHINGS_ATTRIBUTES = [
|
|||
NotifyAppli.BED_IN,
|
||||
"In bed",
|
||||
"",
|
||||
"mdi:hotel",
|
||||
"mdi:bed",
|
||||
BINARY_SENSOR_DOMAIN,
|
||||
True,
|
||||
UpdateType.WEBHOOK,
|
||||
|
|
|
@ -16,7 +16,7 @@ _LOGGER = logging.getLogger(__name__)
|
|||
|
||||
CONF_XUID = "xuid"
|
||||
|
||||
ICON = "mdi:xbox"
|
||||
ICON = "mdi:microsoft-xbox"
|
||||
|
||||
PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend(
|
||||
{
|
||||
|
|
|
@ -208,7 +208,7 @@ async def test_sensors(hass):
|
|||
|
||||
state = hass.states.get("sensor.hl_l2340dw_uptime")
|
||||
assert state
|
||||
assert state.attributes.get(ATTR_ICON) == "mdi:timer"
|
||||
assert state.attributes.get(ATTR_ICON) == "mdi:timer-outline"
|
||||
assert state.attributes.get(ATTR_UNIT_OF_MEASUREMENT) == TIME_DAYS
|
||||
assert state.state == "48"
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue