Reduce solaredge logging severity (#30305)
* [solaredge] Reduce Severity of Log Line This log error happens frequently for some sites, but it shouldn't be an error. It is expected, per the SolarEdge Monitoring API, that some sites do not support this information, and the expected result is that this would be empty (see comments on #27959). Fixes #27959 * Fix a typo Co-authored-by: Fabian Affolter <mail@fabian-affolter.ch>pull/30326/head
parent
dedd1aec8c
commit
e68cd339b9
|
@ -41,7 +41,7 @@ async def async_setup_entry(hass, entry, async_add_entities):
|
|||
return
|
||||
_LOGGER.debug("Credentials correct and site is active")
|
||||
except KeyError:
|
||||
_LOGGER.error("Missing details data in solaredge response")
|
||||
_LOGGER.error("Missing details data in SolarEdge response")
|
||||
return
|
||||
except (ConnectTimeout, HTTPError):
|
||||
_LOGGER.error("Could not retrieve details from SolarEdge API")
|
||||
|
@ -350,7 +350,9 @@ class SolarEdgePowerFlowDataService(SolarEdgeDataService):
|
|||
power_to = []
|
||||
|
||||
if "connections" not in power_flow:
|
||||
_LOGGER.error("Missing connections in power flow data")
|
||||
_LOGGER.debug(
|
||||
"Missing connections in power flow data. Assuming site does not have any"
|
||||
)
|
||||
return
|
||||
|
||||
for connection in power_flow["connections"]:
|
||||
|
|
Loading…
Reference in New Issue