mirror of
https://github.com/home-assistant/core.git
synced 2025-07-16 01:37:08 +00:00
Goodwe - fix value errors (#65121)
This commit is contained in:
parent
75f39f9ca2
commit
0b02870489
@ -76,7 +76,7 @@ async def async_setup_entry(
|
||||
for description in NUMBERS:
|
||||
try:
|
||||
current_value = await description.getter(inverter)
|
||||
except InverterError:
|
||||
except (InverterError, ValueError):
|
||||
# Inverter model does not support this setting
|
||||
_LOGGER.debug("Could not read inverter setting %s", description.key)
|
||||
continue
|
||||
|
@ -42,7 +42,7 @@ async def async_setup_entry(
|
||||
# read current operating mode from the inverter
|
||||
try:
|
||||
active_mode = await inverter.get_operation_mode()
|
||||
except InverterError:
|
||||
except (InverterError, ValueError):
|
||||
# Inverter model does not support this setting
|
||||
_LOGGER.debug("Could not read inverter operation mode")
|
||||
else:
|
||||
|
Loading…
x
Reference in New Issue
Block a user