Include Envoy firmware version in Enphase diagnostics (#105742)

* Include Envoy firmware version in Enphase diagnostics

* Update tests
This commit is contained in:
Charles Garwood 2023-12-14 13:59:39 -05:00 committed by GitHub
parent 40f914214b
commit 032d120a26
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 0 deletions

View file

@ -39,6 +39,7 @@ async def async_get_config_entry_diagnostics(
return async_redact_data(
{
"entry": entry.as_dict(),
"envoy_firmware": coordinator.envoy.firmware,
"data": coordinator.data,
},
TO_REDACT,

View file

@ -49,6 +49,7 @@ def mock_envoy_fixture(serial_number, mock_authenticate, mock_setup, mock_auth):
"""Define a mocked Envoy fixture."""
mock_envoy = Mock(spec=Envoy)
mock_envoy.serial_number = serial_number
mock_envoy.firmware = "7.1.2"
mock_envoy.authenticate = mock_authenticate
mock_envoy.setup = mock_setup
mock_envoy.auth = mock_auth

View file

@ -25,5 +25,6 @@
'unique_id': '**REDACTED**',
'version': 1,
}),
'envoy_firmware': '7.1.2',
})
# ---