mirror of
https://github.com/home-assistant/core.git
synced 2026-12-02 11:33:11 -04:00
Drop the unused temperature from the microbees climate turn on and off (#195976)
This commit is contained in:
@@ -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}")
|
||||
|
||||
Reference in New Issue
Block a user