mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 13:17:32 +00:00
Fix serial in Flo device information (#103427)
This commit is contained in:
parent
3ba8a82243
commit
108aed7843
@ -139,9 +139,9 @@ class FloDeviceDataUpdateCoordinator(DataUpdateCoordinator):
|
||||
return self._device_information["fwVersion"]
|
||||
|
||||
@property
|
||||
def serial_number(self) -> str:
|
||||
def serial_number(self) -> str | None:
|
||||
"""Return the serial number for the device."""
|
||||
return self._device_information["serialNumber"]
|
||||
return self._device_information.get("serialNumber")
|
||||
|
||||
@property
|
||||
def pending_info_alerts_count(self) -> int:
|
||||
|
Loading…
x
Reference in New Issue
Block a user