Skip to content
This repository has been archived by the owner on Feb 29, 2024. It is now read-only.

Commit

Permalink
Merge pull request #307 from Thomas55555/fix-error-sensor
Browse files Browse the repository at this point in the history
fix error sensor
  • Loading branch information
Thomas55555 authored Jul 14, 2022
2 parents 4d6d676 + ac11d19 commit e981c07
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion custom_components/husqvarna_automower/binary_sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,5 +110,6 @@ def extra_state_attributes(self) -> str:
"""Return the specific state attributes of this mower."""
mower_attributes = AutomowerEntity.get_mower_attributes(self)
if self.is_on:
return ERRORCODES.get(mower_attributes["mower"]["errorCode"])
error = ERRORCODES.get(mower_attributes["mower"]["errorCode"])
return {"error": error}
return None

0 comments on commit e981c07

Please sign in to comment.