Skip to content

Commit

Permalink
Fix issue #2
Browse files Browse the repository at this point in the history
  • Loading branch information
kraemermar committed Apr 20, 2022
1 parent 25a9d90 commit b271cc5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/wattpilot/entities.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ def available(self) -> bool:
elif self._source == 'attribute' and not hasattr(self._charger, self._identifier):
_LOGGER.debug("%s - %s: available: false because unknown attribute", self._charger_id, self._identifier)
return False
elif self._source == 'property' and async_GetChargerProp(self._charger, self._identifier) is None:
elif self._source == 'property' and GetChargerProp(self._charger, self._identifier) is None:
_LOGGER.debug("%s - %s: available: false because unknown property", self._charger_id, self._identifier)
return False
else:
Expand Down

0 comments on commit b271cc5

Please sign in to comment.