Skip to content

Commit

Permalink
Fix for nissan_leaf component getting stuck (home-assistant#33425)
Browse files Browse the repository at this point in the history
* Fix for nissan_leaf component getting stuck

* Remove dots from error messages in nissan_leaf component
  • Loading branch information
vwir authored Mar 30, 2020
1 parent 0e6b905 commit eee0a6e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion homeassistant/components/nissan_leaf/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,10 @@ async def async_get_battery(self):
)
return server_info
except CarwingsError:
_LOGGER.error("An error occurred getting battery status.")
_LOGGER.error("An error occurred getting battery status")
return None
except KeyError:
_LOGGER.error("An error occurred parsing response from server")
return None

async def async_get_climate(self):
Expand Down

0 comments on commit eee0a6e

Please sign in to comment.