Skip to content

Commit

Permalink
Convert temperature to int as expected in Aquarea API (#17)
Browse files Browse the repository at this point in the history
Converting temperature from float to int as expected in the Panasonic API, allowing climate entities to set the zone temperature
  • Loading branch information
cjaliaga authored Sep 10, 2022
1 parent b1019a6 commit e69d391
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion custom_components/aquarea/climate.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,4 +193,6 @@ async def async_set_temperature(self, **kwargs) -> None:
str(temperature),
)

await self.coordinator.device.set_temperature(temperature, zone.zone_id)
await self.coordinator.device.set_temperature(
int(temperature), zone.zone_id
)
2 changes: 1 addition & 1 deletion custom_components/aquarea/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@
"@cjaliaga"
],
"iot_class": "cloud_polling",
"version": "0.1.4"
"version": "0.1.5"
}

0 comments on commit e69d391

Please sign in to comment.