mirror of
https://github.com/home-assistant/core.git
synced 2025-07-13 16:27:08 +00:00
parent
ed270f558a
commit
5c0a67a3d2
@ -27,8 +27,6 @@ class LaMarzoccoBinarySensorEntityDescription(
|
||||
"""Description of a La Marzocco binary sensor."""
|
||||
|
||||
is_on_fn: Callable[[LaMarzoccoClient], bool]
|
||||
icon_on: str
|
||||
icon_off: str
|
||||
|
||||
|
||||
ENTITIES: tuple[LaMarzoccoBinarySensorEntityDescription, ...] = (
|
||||
@ -36,8 +34,6 @@ ENTITIES: tuple[LaMarzoccoBinarySensorEntityDescription, ...] = (
|
||||
key="water_tank",
|
||||
translation_key="water_tank",
|
||||
device_class=BinarySensorDeviceClass.PROBLEM,
|
||||
icon_on="mdi:water-remove",
|
||||
icon_off="mdi:water-check",
|
||||
is_on_fn=lambda lm: not lm.current_status.get("water_reservoir_contact"),
|
||||
entity_category=EntityCategory.DIAGNOSTIC,
|
||||
supported_fn=lambda coordinator: coordinator.local_connection_configured,
|
||||
@ -46,8 +42,6 @@ ENTITIES: tuple[LaMarzoccoBinarySensorEntityDescription, ...] = (
|
||||
key="brew_active",
|
||||
translation_key="brew_active",
|
||||
device_class=BinarySensorDeviceClass.RUNNING,
|
||||
icon_off="mdi:cup-off",
|
||||
icon_on="mdi:cup-water",
|
||||
is_on_fn=lambda lm: bool(lm.current_status.get("brew_active")),
|
||||
available_fn=lambda lm: lm.websocket_connected,
|
||||
entity_category=EntityCategory.DIAGNOSTIC,
|
||||
@ -75,15 +69,6 @@ class LaMarzoccoBinarySensorEntity(LaMarzoccoEntity, BinarySensorEntity):
|
||||
|
||||
entity_description: LaMarzoccoBinarySensorEntityDescription
|
||||
|
||||
@property
|
||||
def icon(self) -> str | None:
|
||||
"""Return the icon."""
|
||||
return (
|
||||
self.entity_description.icon_on
|
||||
if self.is_on
|
||||
else self.entity_description.icon_off
|
||||
)
|
||||
|
||||
@property
|
||||
def is_on(self) -> bool:
|
||||
"""Return true if the binary sensor is on."""
|
||||
|
@ -29,7 +29,6 @@ ENTITIES: tuple[LaMarzoccoButtonEntityDescription, ...] = (
|
||||
LaMarzoccoButtonEntityDescription(
|
||||
key="start_backflush",
|
||||
translation_key="start_backflush",
|
||||
icon="mdi:water-sync",
|
||||
press_fn=lambda lm: lm.start_backflush(),
|
||||
),
|
||||
)
|
||||
|
102
homeassistant/components/lamarzocco/icons.json
Normal file
102
homeassistant/components/lamarzocco/icons.json
Normal file
@ -0,0 +1,102 @@
|
||||
{
|
||||
"entity": {
|
||||
"binary_sensor": {
|
||||
"water_tank": {
|
||||
"default": "mdi:water",
|
||||
"state": {
|
||||
"on": "mdi:water-alert",
|
||||
"off": "mdi:water-check"
|
||||
}
|
||||
},
|
||||
"brew_active": {
|
||||
"default": "mdi:cup",
|
||||
"state": {
|
||||
"on": "mdi:cup-water",
|
||||
"off": "mdi:cup-off"
|
||||
}
|
||||
}
|
||||
},
|
||||
"button": {
|
||||
"start_backflush": {
|
||||
"default": "mdi:water-sync"
|
||||
}
|
||||
},
|
||||
"number": {
|
||||
"coffee_temp": {
|
||||
"default": "mdi:thermometer-water"
|
||||
},
|
||||
"steam_temp": {
|
||||
"default": "mdi:thermometer-water"
|
||||
},
|
||||
"tea_water_duration": {
|
||||
"default": "mdi:timer-sand"
|
||||
}
|
||||
},
|
||||
"select": {
|
||||
"steam_temp_select": {
|
||||
"default": "mdi:thermometer",
|
||||
"state": {
|
||||
"1": "mdi:thermometer-low",
|
||||
"2": "mdi:thermometer",
|
||||
"3": "mdi:thermometer-high"
|
||||
}
|
||||
},
|
||||
"prebrew_infusion_select": {
|
||||
"default": "mdi:water-pump-off",
|
||||
"state": {
|
||||
"disabled": "mdi:water-pump-off",
|
||||
"prebrew": "mdi:water-pump",
|
||||
"preinfusion": "mdi:water-pump"
|
||||
}
|
||||
}
|
||||
},
|
||||
"sensor": {
|
||||
"drink_stats_coffee": {
|
||||
"default": "mdi:chart-line"
|
||||
},
|
||||
"drink_stats_flushing": {
|
||||
"default": "mdi:chart-line"
|
||||
},
|
||||
"shot_timer": {
|
||||
"default": "mdi:timer"
|
||||
},
|
||||
"current_temp_coffee": {
|
||||
"default": "mdi:thermometer"
|
||||
},
|
||||
"current_temp_steam": {
|
||||
"default": "mdi:thermometer"
|
||||
}
|
||||
},
|
||||
"switch": {
|
||||
"main": {
|
||||
"default": "mdi:power",
|
||||
"state": {
|
||||
"on": "mdi:power",
|
||||
"off": "mdi:power-off"
|
||||
}
|
||||
},
|
||||
"auto_on_off": {
|
||||
"default": "mdi:alarm",
|
||||
"state": {
|
||||
"on": "mdi:alarm",
|
||||
"off": "mdi:alarm-off"
|
||||
}
|
||||
},
|
||||
"steam_boiler_enable": {
|
||||
"default": "mdi:water-boiler",
|
||||
"state": {
|
||||
"on": "mdi:water-boiler",
|
||||
"off": "mdi:water-boiler-off"
|
||||
}
|
||||
}
|
||||
},
|
||||
"update": {
|
||||
"machine_firmware": {
|
||||
"default": "mdi:cloud-download"
|
||||
},
|
||||
"gateway_firmware": {
|
||||
"default": "mdi:cloud-download"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -44,7 +44,6 @@ ENTITIES: tuple[LaMarzoccoNumberEntityDescription, ...] = (
|
||||
LaMarzoccoNumberEntityDescription(
|
||||
key="coffee_temp",
|
||||
translation_key="coffee_temp",
|
||||
icon="mdi:coffee-maker",
|
||||
device_class=NumberDeviceClass.TEMPERATURE,
|
||||
native_unit_of_measurement=UnitOfTemperature.CELSIUS,
|
||||
native_step=PRECISION_TENTHS,
|
||||
@ -56,7 +55,6 @@ ENTITIES: tuple[LaMarzoccoNumberEntityDescription, ...] = (
|
||||
LaMarzoccoNumberEntityDescription(
|
||||
key="steam_temp",
|
||||
translation_key="steam_temp",
|
||||
icon="mdi:kettle-steam",
|
||||
device_class=NumberDeviceClass.TEMPERATURE,
|
||||
native_unit_of_measurement=UnitOfTemperature.CELSIUS,
|
||||
native_step=PRECISION_WHOLE,
|
||||
@ -73,7 +71,6 @@ ENTITIES: tuple[LaMarzoccoNumberEntityDescription, ...] = (
|
||||
LaMarzoccoNumberEntityDescription(
|
||||
key="tea_water_duration",
|
||||
translation_key="tea_water_duration",
|
||||
icon="mdi:water-percent",
|
||||
device_class=NumberDeviceClass.DURATION,
|
||||
native_unit_of_measurement=UnitOfTime.SECONDS,
|
||||
native_step=PRECISION_WHOLE,
|
||||
|
@ -34,7 +34,6 @@ ENTITIES: tuple[LaMarzoccoSelectEntityDescription, ...] = (
|
||||
LaMarzoccoSelectEntityDescription(
|
||||
key="steam_temp_select",
|
||||
translation_key="steam_temp_select",
|
||||
icon="mdi:water-thermometer",
|
||||
options=["1", "2", "3"],
|
||||
select_option_fn=lambda coordinator, option: coordinator.lm.set_steam_level(
|
||||
int(option)
|
||||
@ -46,7 +45,6 @@ ENTITIES: tuple[LaMarzoccoSelectEntityDescription, ...] = (
|
||||
LaMarzoccoSelectEntityDescription(
|
||||
key="prebrew_infusion_select",
|
||||
translation_key="prebrew_infusion_select",
|
||||
icon="mdi:water-plus",
|
||||
options=["disabled", "prebrew", "preinfusion"],
|
||||
select_option_fn=lambda coordinator,
|
||||
option: coordinator.lm.select_pre_brew_infusion_mode(option.capitalize()),
|
||||
|
@ -34,7 +34,6 @@ ENTITIES: tuple[LaMarzoccoSensorEntityDescription, ...] = (
|
||||
LaMarzoccoSensorEntityDescription(
|
||||
key="drink_stats_coffee",
|
||||
translation_key="drink_stats_coffee",
|
||||
icon="mdi:chart-line",
|
||||
native_unit_of_measurement="drinks",
|
||||
state_class=SensorStateClass.TOTAL_INCREASING,
|
||||
value_fn=lambda lm: lm.current_status.get("drinks_k1", 0),
|
||||
@ -43,7 +42,6 @@ ENTITIES: tuple[LaMarzoccoSensorEntityDescription, ...] = (
|
||||
LaMarzoccoSensorEntityDescription(
|
||||
key="drink_stats_flushing",
|
||||
translation_key="drink_stats_flushing",
|
||||
icon="mdi:chart-line",
|
||||
native_unit_of_measurement="drinks",
|
||||
state_class=SensorStateClass.TOTAL_INCREASING,
|
||||
value_fn=lambda lm: lm.current_status.get("total_flushing", 0),
|
||||
@ -52,7 +50,6 @@ ENTITIES: tuple[LaMarzoccoSensorEntityDescription, ...] = (
|
||||
LaMarzoccoSensorEntityDescription(
|
||||
key="shot_timer",
|
||||
translation_key="shot_timer",
|
||||
icon="mdi:timer",
|
||||
native_unit_of_measurement=UnitOfTime.SECONDS,
|
||||
state_class=SensorStateClass.MEASUREMENT,
|
||||
device_class=SensorDeviceClass.DURATION,
|
||||
@ -64,7 +61,6 @@ ENTITIES: tuple[LaMarzoccoSensorEntityDescription, ...] = (
|
||||
LaMarzoccoSensorEntityDescription(
|
||||
key="current_temp_coffee",
|
||||
translation_key="current_temp_coffee",
|
||||
icon="mdi:thermometer",
|
||||
native_unit_of_measurement=UnitOfTemperature.CELSIUS,
|
||||
state_class=SensorStateClass.MEASUREMENT,
|
||||
device_class=SensorDeviceClass.TEMPERATURE,
|
||||
@ -73,7 +69,6 @@ ENTITIES: tuple[LaMarzoccoSensorEntityDescription, ...] = (
|
||||
LaMarzoccoSensorEntityDescription(
|
||||
key="current_temp_steam",
|
||||
translation_key="current_temp_steam",
|
||||
icon="mdi:thermometer",
|
||||
native_unit_of_measurement=UnitOfTemperature.CELSIUS,
|
||||
state_class=SensorStateClass.MEASUREMENT,
|
||||
device_class=SensorDeviceClass.TEMPERATURE,
|
||||
|
@ -29,14 +29,12 @@ ENTITIES: tuple[LaMarzoccoSwitchEntityDescription, ...] = (
|
||||
LaMarzoccoSwitchEntityDescription(
|
||||
key="main",
|
||||
name=None,
|
||||
icon="mdi:power",
|
||||
control_fn=lambda coordinator, state: coordinator.lm.set_power(state),
|
||||
is_on_fn=lambda coordinator: coordinator.lm.current_status["power"],
|
||||
),
|
||||
LaMarzoccoSwitchEntityDescription(
|
||||
key="auto_on_off",
|
||||
translation_key="auto_on_off",
|
||||
icon="mdi:alarm",
|
||||
control_fn=lambda coordinator, state: coordinator.lm.set_auto_on_off_global(
|
||||
state
|
||||
),
|
||||
@ -47,7 +45,6 @@ ENTITIES: tuple[LaMarzoccoSwitchEntityDescription, ...] = (
|
||||
LaMarzoccoSwitchEntityDescription(
|
||||
key="steam_boiler_enable",
|
||||
translation_key="steam_boiler",
|
||||
icon="mdi:water-boiler",
|
||||
control_fn=lambda coordinator, state: coordinator.lm.set_steam(state),
|
||||
is_on_fn=lambda coordinator: coordinator.lm.current_status[
|
||||
"steam_boiler_enable"
|
||||
|
@ -40,7 +40,6 @@ ENTITIES: tuple[LaMarzoccoUpdateEntityDescription, ...] = (
|
||||
key="machine_firmware",
|
||||
translation_key="machine_firmware",
|
||||
device_class=UpdateDeviceClass.FIRMWARE,
|
||||
icon="mdi:cloud-download",
|
||||
current_fw_fn=lambda lm: lm.firmware_version,
|
||||
latest_fw_fn=lambda lm: lm.latest_firmware_version,
|
||||
component=LaMarzoccoUpdateableComponent.MACHINE,
|
||||
@ -50,7 +49,6 @@ ENTITIES: tuple[LaMarzoccoUpdateEntityDescription, ...] = (
|
||||
key="gateway_firmware",
|
||||
translation_key="gateway_firmware",
|
||||
device_class=UpdateDeviceClass.FIRMWARE,
|
||||
icon="mdi:cloud-download",
|
||||
current_fw_fn=lambda lm: lm.gateway_version,
|
||||
latest_fw_fn=lambda lm: lm.latest_gateway_version,
|
||||
component=LaMarzoccoUpdateableComponent.GATEWAY,
|
||||
|
@ -4,7 +4,6 @@
|
||||
'attributes': ReadOnlyDict({
|
||||
'device_class': 'running',
|
||||
'friendly_name': 'GS01234 Brewing active',
|
||||
'icon': 'mdi:cup-off',
|
||||
}),
|
||||
'context': <ANY>,
|
||||
'entity_id': 'binary_sensor.gs01234_brewing_active',
|
||||
@ -34,7 +33,7 @@
|
||||
'options': dict({
|
||||
}),
|
||||
'original_device_class': <BinarySensorDeviceClass.RUNNING: 'running'>,
|
||||
'original_icon': 'mdi:cup-off',
|
||||
'original_icon': None,
|
||||
'original_name': 'Brewing active',
|
||||
'platform': 'lamarzocco',
|
||||
'previous_unique_id': None,
|
||||
@ -49,7 +48,6 @@
|
||||
'attributes': ReadOnlyDict({
|
||||
'device_class': 'problem',
|
||||
'friendly_name': 'GS01234 Water tank empty',
|
||||
'icon': 'mdi:water-check',
|
||||
}),
|
||||
'context': <ANY>,
|
||||
'entity_id': 'binary_sensor.gs01234_water_tank_empty',
|
||||
@ -79,7 +77,7 @@
|
||||
'options': dict({
|
||||
}),
|
||||
'original_device_class': <BinarySensorDeviceClass.PROBLEM: 'problem'>,
|
||||
'original_icon': 'mdi:water-check',
|
||||
'original_icon': None,
|
||||
'original_name': 'Water tank empty',
|
||||
'platform': 'lamarzocco',
|
||||
'previous_unique_id': None,
|
||||
|
@ -3,7 +3,6 @@
|
||||
StateSnapshot({
|
||||
'attributes': ReadOnlyDict({
|
||||
'friendly_name': 'GS01234 Start backflush',
|
||||
'icon': 'mdi:water-sync',
|
||||
}),
|
||||
'context': <ANY>,
|
||||
'entity_id': 'button.gs01234_start_backflush',
|
||||
@ -33,7 +32,7 @@
|
||||
'options': dict({
|
||||
}),
|
||||
'original_device_class': None,
|
||||
'original_icon': 'mdi:water-sync',
|
||||
'original_icon': None,
|
||||
'original_name': 'Start backflush',
|
||||
'platform': 'lamarzocco',
|
||||
'previous_unique_id': None,
|
||||
|
@ -4,7 +4,6 @@
|
||||
'attributes': ReadOnlyDict({
|
||||
'device_class': 'temperature',
|
||||
'friendly_name': 'GS01234 Coffee target temperature',
|
||||
'icon': 'mdi:coffee-maker',
|
||||
'max': 104,
|
||||
'min': 85,
|
||||
'mode': <NumberMode.AUTO: 'auto'>,
|
||||
@ -44,7 +43,7 @@
|
||||
'options': dict({
|
||||
}),
|
||||
'original_device_class': <NumberDeviceClass.TEMPERATURE: 'temperature'>,
|
||||
'original_icon': 'mdi:coffee-maker',
|
||||
'original_icon': None,
|
||||
'original_name': 'Coffee target temperature',
|
||||
'platform': 'lamarzocco',
|
||||
'previous_unique_id': None,
|
||||
@ -59,7 +58,6 @@
|
||||
'attributes': ReadOnlyDict({
|
||||
'device_class': 'temperature',
|
||||
'friendly_name': 'GS01234 Steam target temperature',
|
||||
'icon': 'mdi:kettle-steam',
|
||||
'max': 131,
|
||||
'min': 126,
|
||||
'mode': <NumberMode.AUTO: 'auto'>,
|
||||
@ -99,7 +97,7 @@
|
||||
'options': dict({
|
||||
}),
|
||||
'original_device_class': <NumberDeviceClass.TEMPERATURE: 'temperature'>,
|
||||
'original_icon': 'mdi:kettle-steam',
|
||||
'original_icon': None,
|
||||
'original_name': 'Steam target temperature',
|
||||
'platform': 'lamarzocco',
|
||||
'previous_unique_id': None,
|
||||
@ -114,7 +112,6 @@
|
||||
'attributes': ReadOnlyDict({
|
||||
'device_class': 'temperature',
|
||||
'friendly_name': 'GS01234 Steam target temperature',
|
||||
'icon': 'mdi:kettle-steam',
|
||||
'max': 131,
|
||||
'min': 126,
|
||||
'mode': <NumberMode.AUTO: 'auto'>,
|
||||
@ -154,7 +151,7 @@
|
||||
'options': dict({
|
||||
}),
|
||||
'original_device_class': <NumberDeviceClass.TEMPERATURE: 'temperature'>,
|
||||
'original_icon': 'mdi:kettle-steam',
|
||||
'original_icon': None,
|
||||
'original_name': 'Steam target temperature',
|
||||
'platform': 'lamarzocco',
|
||||
'previous_unique_id': None,
|
||||
@ -169,7 +166,6 @@
|
||||
'attributes': ReadOnlyDict({
|
||||
'device_class': 'duration',
|
||||
'friendly_name': 'GS01234 Tea water duration',
|
||||
'icon': 'mdi:water-percent',
|
||||
'max': 30,
|
||||
'min': 0,
|
||||
'mode': <NumberMode.AUTO: 'auto'>,
|
||||
@ -209,7 +205,7 @@
|
||||
'options': dict({
|
||||
}),
|
||||
'original_device_class': <NumberDeviceClass.DURATION: 'duration'>,
|
||||
'original_icon': 'mdi:water-percent',
|
||||
'original_icon': None,
|
||||
'original_name': 'Tea water duration',
|
||||
'platform': 'lamarzocco',
|
||||
'previous_unique_id': None,
|
||||
@ -224,7 +220,6 @@
|
||||
'attributes': ReadOnlyDict({
|
||||
'device_class': 'duration',
|
||||
'friendly_name': 'GS01234 Tea water duration',
|
||||
'icon': 'mdi:water-percent',
|
||||
'max': 30,
|
||||
'min': 0,
|
||||
'mode': <NumberMode.AUTO: 'auto'>,
|
||||
@ -264,7 +259,7 @@
|
||||
'options': dict({
|
||||
}),
|
||||
'original_device_class': <NumberDeviceClass.DURATION: 'duration'>,
|
||||
'original_icon': 'mdi:water-percent',
|
||||
'original_icon': None,
|
||||
'original_name': 'Tea water duration',
|
||||
'platform': 'lamarzocco',
|
||||
'previous_unique_id': None,
|
||||
|
@ -3,7 +3,6 @@
|
||||
StateSnapshot({
|
||||
'attributes': ReadOnlyDict({
|
||||
'friendly_name': 'GS01234 Prebrew/-infusion mode',
|
||||
'icon': 'mdi:water-plus',
|
||||
'options': list([
|
||||
'disabled',
|
||||
'prebrew',
|
||||
@ -44,7 +43,7 @@
|
||||
'options': dict({
|
||||
}),
|
||||
'original_device_class': None,
|
||||
'original_icon': 'mdi:water-plus',
|
||||
'original_icon': None,
|
||||
'original_name': 'Prebrew/-infusion mode',
|
||||
'platform': 'lamarzocco',
|
||||
'previous_unique_id': None,
|
||||
@ -58,7 +57,6 @@
|
||||
StateSnapshot({
|
||||
'attributes': ReadOnlyDict({
|
||||
'friendly_name': 'LM01234 Prebrew/-infusion mode',
|
||||
'icon': 'mdi:water-plus',
|
||||
'options': list([
|
||||
'disabled',
|
||||
'prebrew',
|
||||
@ -99,7 +97,7 @@
|
||||
'options': dict({
|
||||
}),
|
||||
'original_device_class': None,
|
||||
'original_icon': 'mdi:water-plus',
|
||||
'original_icon': None,
|
||||
'original_name': 'Prebrew/-infusion mode',
|
||||
'platform': 'lamarzocco',
|
||||
'previous_unique_id': None,
|
||||
@ -113,7 +111,6 @@
|
||||
StateSnapshot({
|
||||
'attributes': ReadOnlyDict({
|
||||
'friendly_name': 'MR01234 Prebrew/-infusion mode',
|
||||
'icon': 'mdi:water-plus',
|
||||
'options': list([
|
||||
'disabled',
|
||||
'prebrew',
|
||||
@ -154,7 +151,7 @@
|
||||
'options': dict({
|
||||
}),
|
||||
'original_device_class': None,
|
||||
'original_icon': 'mdi:water-plus',
|
||||
'original_icon': None,
|
||||
'original_name': 'Prebrew/-infusion mode',
|
||||
'platform': 'lamarzocco',
|
||||
'previous_unique_id': None,
|
||||
@ -168,7 +165,6 @@
|
||||
StateSnapshot({
|
||||
'attributes': ReadOnlyDict({
|
||||
'friendly_name': 'MR01234 Steam level',
|
||||
'icon': 'mdi:water-thermometer',
|
||||
'options': list([
|
||||
'1',
|
||||
'2',
|
||||
@ -209,7 +205,7 @@
|
||||
'options': dict({
|
||||
}),
|
||||
'original_device_class': None,
|
||||
'original_icon': 'mdi:water-thermometer',
|
||||
'original_icon': None,
|
||||
'original_name': 'Steam level',
|
||||
'platform': 'lamarzocco',
|
||||
'previous_unique_id': None,
|
||||
|
@ -22,7 +22,7 @@
|
||||
'options': dict({
|
||||
}),
|
||||
'original_device_class': <SensorDeviceClass.TEMPERATURE: 'temperature'>,
|
||||
'original_icon': 'mdi:thermometer',
|
||||
'original_icon': None,
|
||||
'original_name': 'Current coffee temperature',
|
||||
'platform': 'lamarzocco',
|
||||
'previous_unique_id': None,
|
||||
@ -37,7 +37,6 @@
|
||||
'attributes': ReadOnlyDict({
|
||||
'device_class': 'temperature',
|
||||
'friendly_name': 'GS01234 Current coffee temperature',
|
||||
'icon': 'mdi:thermometer',
|
||||
'state_class': <SensorStateClass.MEASUREMENT: 'measurement'>,
|
||||
'unit_of_measurement': <UnitOfTemperature.CELSIUS: '°C'>,
|
||||
}),
|
||||
@ -71,7 +70,7 @@
|
||||
'options': dict({
|
||||
}),
|
||||
'original_device_class': <SensorDeviceClass.TEMPERATURE: 'temperature'>,
|
||||
'original_icon': 'mdi:thermometer',
|
||||
'original_icon': None,
|
||||
'original_name': 'Current steam temperature',
|
||||
'platform': 'lamarzocco',
|
||||
'previous_unique_id': None,
|
||||
@ -86,7 +85,6 @@
|
||||
'attributes': ReadOnlyDict({
|
||||
'device_class': 'temperature',
|
||||
'friendly_name': 'GS01234 Current steam temperature',
|
||||
'icon': 'mdi:thermometer',
|
||||
'state_class': <SensorStateClass.MEASUREMENT: 'measurement'>,
|
||||
'unit_of_measurement': <UnitOfTemperature.CELSIUS: '°C'>,
|
||||
}),
|
||||
@ -120,7 +118,7 @@
|
||||
'options': dict({
|
||||
}),
|
||||
'original_device_class': <SensorDeviceClass.DURATION: 'duration'>,
|
||||
'original_icon': 'mdi:timer',
|
||||
'original_icon': None,
|
||||
'original_name': 'Shot timer',
|
||||
'platform': 'lamarzocco',
|
||||
'previous_unique_id': None,
|
||||
@ -135,7 +133,6 @@
|
||||
'attributes': ReadOnlyDict({
|
||||
'device_class': 'duration',
|
||||
'friendly_name': 'GS01234 Shot timer',
|
||||
'icon': 'mdi:timer',
|
||||
'state_class': <SensorStateClass.MEASUREMENT: 'measurement'>,
|
||||
'unit_of_measurement': <UnitOfTime.SECONDS: 's'>,
|
||||
}),
|
||||
@ -169,7 +166,7 @@
|
||||
'options': dict({
|
||||
}),
|
||||
'original_device_class': None,
|
||||
'original_icon': 'mdi:chart-line',
|
||||
'original_icon': None,
|
||||
'original_name': 'Total coffees made',
|
||||
'platform': 'lamarzocco',
|
||||
'previous_unique_id': None,
|
||||
@ -183,7 +180,6 @@
|
||||
StateSnapshot({
|
||||
'attributes': ReadOnlyDict({
|
||||
'friendly_name': 'GS01234 Total coffees made',
|
||||
'icon': 'mdi:chart-line',
|
||||
'state_class': <SensorStateClass.TOTAL_INCREASING: 'total_increasing'>,
|
||||
'unit_of_measurement': 'drinks',
|
||||
}),
|
||||
@ -217,7 +213,7 @@
|
||||
'options': dict({
|
||||
}),
|
||||
'original_device_class': None,
|
||||
'original_icon': 'mdi:chart-line',
|
||||
'original_icon': None,
|
||||
'original_name': 'Total flushes made',
|
||||
'platform': 'lamarzocco',
|
||||
'previous_unique_id': None,
|
||||
@ -231,7 +227,6 @@
|
||||
StateSnapshot({
|
||||
'attributes': ReadOnlyDict({
|
||||
'friendly_name': 'GS01234 Total flushes made',
|
||||
'icon': 'mdi:chart-line',
|
||||
'state_class': <SensorStateClass.TOTAL_INCREASING: 'total_increasing'>,
|
||||
'unit_of_measurement': 'drinks',
|
||||
}),
|
||||
|
@ -31,7 +31,6 @@
|
||||
StateSnapshot({
|
||||
'attributes': ReadOnlyDict({
|
||||
'friendly_name': 'GS01234',
|
||||
'icon': 'mdi:power',
|
||||
}),
|
||||
'context': <ANY>,
|
||||
'entity_id': 'switch.gs01234',
|
||||
@ -61,7 +60,7 @@
|
||||
'options': dict({
|
||||
}),
|
||||
'original_device_class': None,
|
||||
'original_icon': 'mdi:power',
|
||||
'original_icon': None,
|
||||
'original_name': None,
|
||||
'platform': 'lamarzocco',
|
||||
'previous_unique_id': None,
|
||||
@ -75,7 +74,6 @@
|
||||
StateSnapshot({
|
||||
'attributes': ReadOnlyDict({
|
||||
'friendly_name': 'GS01234 Auto on/off',
|
||||
'icon': 'mdi:alarm',
|
||||
}),
|
||||
'context': <ANY>,
|
||||
'entity_id': 'switch.gs01234_auto_on_off',
|
||||
@ -105,7 +103,7 @@
|
||||
'options': dict({
|
||||
}),
|
||||
'original_device_class': None,
|
||||
'original_icon': 'mdi:alarm',
|
||||
'original_icon': None,
|
||||
'original_name': 'Auto on/off',
|
||||
'platform': 'lamarzocco',
|
||||
'previous_unique_id': None,
|
||||
@ -119,7 +117,6 @@
|
||||
StateSnapshot({
|
||||
'attributes': ReadOnlyDict({
|
||||
'friendly_name': 'GS01234 Steam boiler',
|
||||
'icon': 'mdi:water-boiler',
|
||||
}),
|
||||
'context': <ANY>,
|
||||
'entity_id': 'switch.gs01234_steam_boiler',
|
||||
@ -149,7 +146,7 @@
|
||||
'options': dict({
|
||||
}),
|
||||
'original_device_class': None,
|
||||
'original_icon': 'mdi:water-boiler',
|
||||
'original_icon': None,
|
||||
'original_name': 'Steam boiler',
|
||||
'platform': 'lamarzocco',
|
||||
'previous_unique_id': None,
|
||||
|
@ -6,7 +6,6 @@
|
||||
'device_class': 'firmware',
|
||||
'entity_picture': 'https://brands.home-assistant.io/_/lamarzocco/icon.png',
|
||||
'friendly_name': 'GS01234 Gateway firmware',
|
||||
'icon': 'mdi:cloud-download',
|
||||
'in_progress': False,
|
||||
'installed_version': 'v2.2-rc0',
|
||||
'latest_version': 'v3.1-rc4',
|
||||
@ -44,7 +43,7 @@
|
||||
'options': dict({
|
||||
}),
|
||||
'original_device_class': <UpdateDeviceClass.FIRMWARE: 'firmware'>,
|
||||
'original_icon': 'mdi:cloud-download',
|
||||
'original_icon': None,
|
||||
'original_name': 'Gateway firmware',
|
||||
'platform': 'lamarzocco',
|
||||
'previous_unique_id': None,
|
||||
@ -61,7 +60,6 @@
|
||||
'device_class': 'firmware',
|
||||
'entity_picture': 'https://brands.home-assistant.io/_/lamarzocco/icon.png',
|
||||
'friendly_name': 'GS01234 Machine firmware',
|
||||
'icon': 'mdi:cloud-download',
|
||||
'in_progress': False,
|
||||
'installed_version': '1.1',
|
||||
'latest_version': '1.2',
|
||||
@ -99,7 +97,7 @@
|
||||
'options': dict({
|
||||
}),
|
||||
'original_device_class': <UpdateDeviceClass.FIRMWARE: 'firmware'>,
|
||||
'original_icon': 'mdi:cloud-download',
|
||||
'original_icon': None,
|
||||
'original_name': 'Machine firmware',
|
||||
'platform': 'lamarzocco',
|
||||
'previous_unique_id': None,
|
||||
|
Loading…
x
Reference in New Issue
Block a user