Skip to content

Commit

Permalink
Fix set_fan_percent_txqueue name
Browse files Browse the repository at this point in the history
  • Loading branch information
WillCodeForCats committed Jan 29, 2025
1 parent 906d0dd commit 535c3fb
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion custom_components/tekmar_482/climate.py
Original file line number Diff line number Diff line change
Expand Up @@ -422,7 +422,7 @@ async def async_set_fan_mode(self, fan_mode):
else:
raise NotImplementedError()

await self._tekmar_tha.set_FanPercent_txqueue(value)
await self._tekmar_tha.set_fan_percent_txqueue(value)

async def async_set_humidity(self, humidity):
if (
Expand Down
2 changes: 1 addition & 1 deletion custom_components/tekmar_482/hub.py
Original file line number Diff line number Diff line change
Expand Up @@ -1095,7 +1095,7 @@ async def set_fan_percent(self, percent: int, setback: int) -> None:
self._tha_fan_percent[SETBACK_FAN_MAP[setback]] = percent
await self.publish_updates()

async def set_FanPercent_txqueue(
async def set_fan_percent_txqueue(
self, percent: int, setback: int = ThaSetback.CURRENT
) -> None:
await self.hub.async_queue_message(
Expand Down
4 changes: 2 additions & 2 deletions custom_components/tekmar_482/select.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,11 +104,11 @@ async def async_select_option(self, option: str) -> None:
if option in ["0", "10", "20", "30", "40", "50", "60", "70", "80", "90", "100"]:
if self._tekmar_tha.tha_device["type"] in [99203, 99202, 99201]:
value = int(option / 10)
await self._tekmar_tha.set_FanPercent_txqueue(value)
await self._tekmar_tha.set_fan_percent_txqueue(value)

else:
value = int(option)
await self._tekmar_tha.set_FanPercent_txqueue(value)
await self._tekmar_tha.set_fan_percent_txqueue(value)

else:
raise ValueError

0 comments on commit 535c3fb

Please sign in to comment.