* Add handling for LASTSTEST sensor * Set the state to unknown instead of unavailable * Use LASTSTEST constant and revise the logic to add it to the entity list * Use LASTSTEST constant
9 lines
208 B
Python
9 lines
208 B
Python
"""Constants for APCUPSd component."""
|
|
|
|
from typing import Final
|
|
|
|
DOMAIN: Final = "apcupsd"
|
|
CONNECTION_TIMEOUT: int = 10
|
|
|
|
# Field name of last self test retrieved from apcupsd.
|
|
LASTSTEST: Final = "laststest"
|