Skip to content

Commit 5450cda

Browse files
authored
Async vs sync inheritance mismatch fixes (home-assistant#35088)
1 parent a2048b4 commit 5450cda

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

homeassistant/components/atag/water_heater.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ def operation_list(self):
4949
"""List of available operation modes."""
5050
return OPERATION_LIST
5151

52-
async def set_temperature(self, **kwargs):
52+
async def async_set_temperature(self, **kwargs):
5353
"""Set new target temperature."""
5454
if await self.coordinator.atag.dhw_set_temp(kwargs.get(ATTR_TEMPERATURE)):
5555
self.async_write_ha_state()

homeassistant/components/fortigate/device_tracker.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ async def async_scan_devices(self):
6060
await self.async_update_info()
6161
return [device.mac for device in self.last_results]
6262

63-
async def get_device_name(self, device):
63+
def get_device_name(self, device):
6464
"""Return the name of the given device or None if we don't know."""
6565
name = next(
6666
(result.hostname for result in self.last_results if result.mac == device),

homeassistant/components/hunterdouglas_powerview/cover.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ async def async_stop_cover(self, **kwargs):
161161
self._async_update_from_command(await self._shade.stop())
162162
await self._async_force_refresh_state()
163163

164-
async def set_cover_position(self, **kwargs):
164+
async def async_set_cover_position(self, **kwargs):
165165
"""Move the shade to a specific position."""
166166
if ATTR_POSITION not in kwargs:
167167
return

0 commit comments

Comments
 (0)