Reduce ZHA OTA logbook entries and extraneous updates (#114591)
This commit is contained in:
parent
1b875e7de2
commit
581c67ed29
2 changed files with 7 additions and 5 deletions
|
@ -130,14 +130,9 @@ class ZHAFirmwareUpdateEntity(
|
|||
def _get_cluster_version(self) -> str | None:
|
||||
"""Synchronize current file version with the cluster."""
|
||||
|
||||
device = self._ota_cluster_handler._endpoint.device # pylint: disable=protected-access
|
||||
|
||||
if self._ota_cluster_handler.current_file_version is not None:
|
||||
return f"0x{self._ota_cluster_handler.current_file_version:08x}"
|
||||
|
||||
if device.sw_version is not None:
|
||||
return device.sw_version
|
||||
|
||||
return None
|
||||
|
||||
@callback
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue