mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 13:17:32 +00:00
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
@ -39,6 +39,7 @@ async def async_get_config_entry_diagnostics(
|
|||||||
return async_redact_data(
|
return async_redact_data(
|
||||||
{
|
{
|
||||||
"entry": entry.as_dict(),
|
"entry": entry.as_dict(),
|
||||||
|
"envoy_firmware": coordinator.envoy.firmware,
|
||||||
"data": coordinator.data,
|
"data": coordinator.data,
|
||||||
},
|
},
|
||||||
TO_REDACT,
|
TO_REDACT,
|
||||||
|
@ -49,6 +49,7 @@ def mock_envoy_fixture(serial_number, mock_authenticate, mock_setup, mock_auth):
|
|||||||
"""Define a mocked Envoy fixture."""
|
"""Define a mocked Envoy fixture."""
|
||||||
mock_envoy = Mock(spec=Envoy)
|
mock_envoy = Mock(spec=Envoy)
|
||||||
mock_envoy.serial_number = serial_number
|
mock_envoy.serial_number = serial_number
|
||||||
|
mock_envoy.firmware = "7.1.2"
|
||||||
mock_envoy.authenticate = mock_authenticate
|
mock_envoy.authenticate = mock_authenticate
|
||||||
mock_envoy.setup = mock_setup
|
mock_envoy.setup = mock_setup
|
||||||
mock_envoy.auth = mock_auth
|
mock_envoy.auth = mock_auth
|
||||||
|
@ -25,5 +25,6 @@
|
|||||||
'unique_id': '**REDACTED**',
|
'unique_id': '**REDACTED**',
|
||||||
'version': 1,
|
'version': 1,
|
||||||
}),
|
}),
|
||||||
|
'envoy_firmware': '7.1.2',
|
||||||
})
|
})
|
||||||
# ---
|
# ---
|
||||||
|
Loading…
x
Reference in New Issue
Block a user