Bump pylamarzocco to 1.4.7 (#139231)

This commit is contained in:
Josef Zweck 2025-02-25 09:32:06 +01:00 committed by GitHub
parent 6342d8334b
commit c386abd49d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
7 changed files with 13 additions and 9 deletions

View File

@ -83,7 +83,7 @@ async def async_setup_entry(
] ]
if ( if (
coordinator.device.model == MachineModel.LINEA_MINI coordinator.device.model in (MachineModel.LINEA_MINI, MachineModel.LINEA_MINI_R)
and coordinator.device.config.scale and coordinator.device.config.scale
): ):
entities.extend( entities.extend(

View File

@ -37,5 +37,5 @@
"iot_class": "cloud_polling", "iot_class": "cloud_polling",
"loggers": ["pylamarzocco"], "loggers": ["pylamarzocco"],
"quality_scale": "platinum", "quality_scale": "platinum",
"requirements": ["pylamarzocco==1.4.6"] "requirements": ["pylamarzocco==1.4.7"]
} }

View File

@ -220,7 +220,8 @@ SCALE_KEY_ENTITIES: tuple[LaMarzoccoKeyNumberEntityDescription, ...] = (
config.bbw_settings.doses[key] if config.bbw_settings else None config.bbw_settings.doses[key] if config.bbw_settings else None
), ),
supported_fn=( supported_fn=(
lambda coordinator: coordinator.device.model == MachineModel.LINEA_MINI lambda coordinator: coordinator.device.model
in (MachineModel.LINEA_MINI, MachineModel.LINEA_MINI_R)
and coordinator.device.config.scale is not None and coordinator.device.config.scale is not None
), ),
), ),

View File

@ -88,6 +88,7 @@ ENTITIES: tuple[LaMarzoccoSelectEntityDescription, ...] = (
MachineModel.GS3_AV, MachineModel.GS3_AV,
MachineModel.LINEA_MICRA, MachineModel.LINEA_MICRA,
MachineModel.LINEA_MINI, MachineModel.LINEA_MINI,
MachineModel.LINEA_MINI_R,
), ),
), ),
LaMarzoccoSelectEntityDescription( LaMarzoccoSelectEntityDescription(
@ -138,7 +139,7 @@ async def async_setup_entry(
] ]
if ( if (
coordinator.device.model == MachineModel.LINEA_MINI coordinator.device.model in (MachineModel.LINEA_MINI, MachineModel.LINEA_MINI_R)
and coordinator.device.config.scale and coordinator.device.config.scale
): ):
entities.extend( entities.extend(

View File

@ -80,7 +80,7 @@ ENTITIES: tuple[LaMarzoccoSensorEntityDescription, ...] = (
BoilerType.STEAM BoilerType.STEAM
].current_temperature, ].current_temperature,
supported_fn=lambda coordinator: coordinator.device.model supported_fn=lambda coordinator: coordinator.device.model
!= MachineModel.LINEA_MINI, not in (MachineModel.LINEA_MINI, MachineModel.LINEA_MINI_R),
), ),
) )
@ -125,7 +125,8 @@ SCALE_ENTITIES: tuple[LaMarzoccoSensorEntityDescription, ...] = (
device.config.scale.battery if device.config.scale else 0 device.config.scale.battery if device.config.scale else 0
), ),
supported_fn=( supported_fn=(
lambda coordinator: coordinator.device.model == MachineModel.LINEA_MINI lambda coordinator: coordinator.device.model
in (MachineModel.LINEA_MINI, MachineModel.LINEA_MINI_R)
), ),
), ),
) )
@ -148,7 +149,8 @@ async def async_setup_entry(
] ]
if ( if (
config_coordinator.device.model == MachineModel.LINEA_MINI config_coordinator.device.model
in (MachineModel.LINEA_MINI, MachineModel.LINEA_MINI_R)
and config_coordinator.device.config.scale and config_coordinator.device.config.scale
): ):
entities.extend( entities.extend(

2
requirements_all.txt generated
View File

@ -2077,7 +2077,7 @@ pykwb==0.0.8
pylacrosse==0.4 pylacrosse==0.4
# homeassistant.components.lamarzocco # homeassistant.components.lamarzocco
pylamarzocco==1.4.6 pylamarzocco==1.4.7
# homeassistant.components.lastfm # homeassistant.components.lastfm
pylast==5.1.0 pylast==5.1.0

View File

@ -1691,7 +1691,7 @@ pykrakenapi==0.1.8
pykulersky==0.5.2 pykulersky==0.5.2
# homeassistant.components.lamarzocco # homeassistant.components.lamarzocco
pylamarzocco==1.4.6 pylamarzocco==1.4.7
# homeassistant.components.lastfm # homeassistant.components.lastfm
pylast==5.1.0 pylast==5.1.0