Skip to content

Commit

Permalink
- fixed typos in humidifier class
Browse files Browse the repository at this point in the history
  • Loading branch information
simbaja committed Aug 2, 2023
1 parent 294a111 commit 102c7d9
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions custom_components/ge_home/entities/common/ge_humidifier.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,11 @@ def supported_features(self) -> HumidifierEntityFeature:

@property
def is_on(self) -> bool:
return self.appliance.get_erd_value(self.power_status_erd_code) == ErdOnOff.ON
return self.appliance.get_erd_value(self._power_status_erd_code) == ErdOnOff.ON

@property
def device_class(self):
return self.device_class
return self._device_class

async def async_set_humidity(self, humidity: int) -> Coroutine[Any, Any, None]:
if self.target_humidity == humidity:
Expand All @@ -83,16 +83,16 @@ async def async_set_humidity(self, humidity: int) -> Coroutine[Any, Any, None]:

# set the mode
await self.appliance.async_set_erd_value(
self.target_humidity_erd_code,
self.humidity,
self._target_humidity_erd_code,
humidity,
)

async def async_turn_on(self):
await self.appliance.async_set_erd_value(
self.power_status_erd_code, ErdOnOff.ON
self._power_status_erd_code, ErdOnOff.ON
)

async def async_turn_off(self):
await self.appliance.async_set_erd_value(
self.power_status_erd_code, ErdOnOff.OFF
self._power_status_erd_code, ErdOnOff.OFF
)

0 comments on commit 102c7d9

Please sign in to comment.