Drop the unused temperature from the microbees climate turn on and off (#195976)

This commit is contained in:
epenet
2026-12-02 09:52:59 -05:00
committed by GitHub
parent 62eb1f9d6e
commit a8234324f4
@@ -123,10 +123,7 @@ class MBClimate(MicroBeesActuatorEntity, ClimateEntity):
@override
async def async_turn_on(self, **kwargs: Any) -> None:
"""Turn on the climate."""
temperature = kwargs.get(ATTR_TEMPERATURE)
send_command = await self.coordinator.microbees.sendCommand(
self.actuator_id, 1, temperature=temperature
)
send_command = await self.coordinator.microbees.sendCommand(self.actuator_id, 1)
if not send_command:
raise HomeAssistantError(f"Failed to set temperature {self.name}")
@@ -138,10 +135,7 @@ class MBClimate(MicroBeesActuatorEntity, ClimateEntity):
@override
async def async_turn_off(self, **kwargs: Any) -> None:
"""Turn off the climate."""
temperature = kwargs.get(ATTR_TEMPERATURE)
send_command = await self.coordinator.microbees.sendCommand(
self.actuator_id, 0, temperature=temperature
)
send_command = await self.coordinator.microbees.sendCommand(self.actuator_id, 0)
if not send_command:
raise HomeAssistantError(f"Failed to set temperature {self.name}")