Include Envoy firmware version in Enphase diagnostics (#105742)
* Include Envoy firmware version in Enphase diagnostics * Update tests
This commit is contained in:
parent
40f914214b
commit
032d120a26
3 changed files with 3 additions and 0 deletions
|
@ -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,
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -25,5 +25,6 @@
|
|||
'unique_id': '**REDACTED**',
|
||||
'version': 1,
|
||||
}),
|
||||
'envoy_firmware': '7.1.2',
|
||||
})
|
||||
# ---
|
||||
|
|
Loading…
Add table
Reference in a new issue