Skip to content

Commit

Permalink
Merge pull request #13 from chbmuc/fix-async-set
Browse files Browse the repository at this point in the history
fix function name for async_set_native_value
  • Loading branch information
mk-maddin authored Oct 11, 2022
2 parents 8820a5b + 77f4789 commit 7b9063c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions custom_components/wattpilot/number.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,12 +128,12 @@ def mode(self) -> str | None:
return self._mode


async def asyc_native_set_value(self, value) -> None:
async def async_set_native_value(self, value) -> None:
"""Async: Change the current value."""
try:
_LOGGER.debug("%s - %s: asyc_native_set_value: value was changed to: %s", self._charger_id, self._identifier, float)
_LOGGER.debug("%s - %s: async_set_native_value: value was changed to: %s", self._charger_id, self._identifier, float)
if (self._identifier == 'fte'):
_LOGGER.debug("%s - %s: asyc_native_set_value: apply ugly workaround to always set next trip distance to kWH instead of KM", self._charger_id, self._identifier)
_LOGGER.debug("%s - %s: async_set_native_value: apply ugly workaround to always set next trip distance to kWH instead of KM", self._charger_id, self._identifier)
await async_SetChargerProp(self._charger,'esk',True)
await async_SetChargerProp(self._charger,self._identifier,value,force_type=self._set_type)
except Exception as e:
Expand Down

0 comments on commit 7b9063c

Please sign in to comment.