Fix Vicare imports (#29071)
* fix import * Update water_heater.py * use ValueError * use ValueError
This commit is contained in:
parent
2cdd8ad15e
commit
1c73ac5df8
2 changed files with 2 additions and 4 deletions
|
@ -1,7 +1,6 @@
|
|||
"""Viessmann ViCare water_heater device."""
|
||||
import logging
|
||||
import requests
|
||||
import simplejson
|
||||
|
||||
from homeassistant.components.water_heater import (
|
||||
SUPPORT_TARGET_TEMPERATURE,
|
||||
|
@ -93,7 +92,7 @@ class ViCareWater(WaterHeaterDevice):
|
|||
self._current_mode = self._api.getActiveMode()
|
||||
except requests.exceptions.ConnectionError:
|
||||
_LOGGER.error("Unable to retrieve data from ViCare server")
|
||||
except simplejson.errors.JSONDecodeError:
|
||||
except ValueError:
|
||||
_LOGGER.error("Unable to decode data from ViCare server")
|
||||
|
||||
@property
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue