mirror of
https://github.com/home-assistant/core.git
synced 2025-07-17 10:17:09 +00:00
Fix comment typo for _serial_from_status() in NUT (#124175)
Fix comment typo for _serial_from_status()
This commit is contained in:
parent
05aeb3fbd1
commit
1fdcbc3f15
@ -172,7 +172,7 @@ def _firmware_from_status(status: dict[str, str]) -> str | None:
|
|||||||
|
|
||||||
|
|
||||||
def _serial_from_status(status: dict[str, str]) -> str | None:
|
def _serial_from_status(status: dict[str, str]) -> str | None:
|
||||||
"""Find the best serialvalue from the status."""
|
"""Find the best serial value from the status."""
|
||||||
serial = status.get("device.serial") or status.get("ups.serial")
|
serial = status.get("device.serial") or status.get("ups.serial")
|
||||||
if serial and (
|
if serial and (
|
||||||
serial.lower() in NUT_FAKE_SERIAL or serial.count("0") == len(serial.strip())
|
serial.lower() in NUT_FAKE_SERIAL or serial.count("0") == len(serial.strip())
|
||||||
|
Loading…
x
Reference in New Issue
Block a user