Skip to content

Commit

Permalink
style: auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed May 11, 2024
1 parent 6888819 commit 453524f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions custom_components/tesla_custom/climate.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,6 @@ async def async_set_preset_mode(self, preset_mode: str) -> None:
else:
await self._car.set_climate_keeper_mode(KEEPER_MAP[preset_mode])


@property
def fan_mode(self):
"""Return the bioweapon mode as fan mode
Expand All @@ -165,7 +164,7 @@ async def async_set_fan_mode(self, fan_mode: str) -> None:
"""Set new fan mode as bioweapon mode."""
_LOGGER.debug("%s: Setting fan_mode to: %s", self.name, fan_mode)

await self._car.set_bioweapon_mode(fan_mode=="Bioweapon Mode")
await self._car.set_bioweapon_mode(fan_mode == "Bioweapon Mode")
await self.coordinator.async_refresh()
# max_defrost changes multiple states so refresh all entities
await self.coordinator.async_refresh()

0 comments on commit 453524f

Please sign in to comment.