Adds missing constant and improves readability
Adds OUTSIDE_BATTERY to the DISABLED_BY_DEFAULT list. Improves readability by formatting long strings with parenthesis.pull/72/head^2
parent
09d79e2032
commit
1ecd88269d
|
|
@ -23,8 +23,12 @@ WSLINK: Final = "wslink"
|
||||||
WINDY_API_KEY = "WINDY_API_KEY"
|
WINDY_API_KEY = "WINDY_API_KEY"
|
||||||
WINDY_ENABLED: Final = "windy_enabled_checkbox"
|
WINDY_ENABLED: Final = "windy_enabled_checkbox"
|
||||||
WINDY_LOGGER_ENABLED: Final = "windy_logger_checkbox"
|
WINDY_LOGGER_ENABLED: Final = "windy_logger_checkbox"
|
||||||
WINDY_NOT_INSERTED: Final = "Data was succefuly sent to Windy, but not inserted by Windy API. Does anyone else sent data to Windy?"
|
WINDY_NOT_INSERTED: Final = (
|
||||||
WINDY_INVALID_KEY: Final = "Windy API KEY is invalid. Send data to Windy is now disabled. Check your API KEY and try again."
|
"Data was succefuly sent to Windy, but not inserted by Windy API. Does anyone else sent data to Windy?"
|
||||||
|
)
|
||||||
|
WINDY_INVALID_KEY: Final = (
|
||||||
|
"Windy API KEY is invalid. Send data to Windy is now disabled. Check your API KEY and try again."
|
||||||
|
)
|
||||||
WINDY_SUCCESS: Final = (
|
WINDY_SUCCESS: Final = (
|
||||||
"Windy successfully sent data and data was successfully inserted by Windy API"
|
"Windy successfully sent data and data was successfully inserted by Windy API"
|
||||||
)
|
)
|
||||||
|
|
@ -155,6 +159,7 @@ DISABLED_BY_DEFAULT: Final = [
|
||||||
CH3_HUMIDITY,
|
CH3_HUMIDITY,
|
||||||
CH4_TEMP,
|
CH4_TEMP,
|
||||||
CH4_HUMIDITY,
|
CH4_HUMIDITY,
|
||||||
|
OUTSIDE_BATTERY,
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -178,6 +183,7 @@ class UnitOfDir(StrEnum):
|
||||||
NNW = "nnw"
|
NNW = "nnw"
|
||||||
N = "n"
|
N = "n"
|
||||||
|
|
||||||
|
|
||||||
AZIMUT: list[UnitOfDir] = [
|
AZIMUT: list[UnitOfDir] = [
|
||||||
UnitOfDir.NNE,
|
UnitOfDir.NNE,
|
||||||
UnitOfDir.NE,
|
UnitOfDir.NE,
|
||||||
|
|
@ -197,6 +203,7 @@ AZIMUT: list[UnitOfDir] = [
|
||||||
UnitOfDir.N,
|
UnitOfDir.N,
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
||||||
class UnitOfBat(StrEnum):
|
class UnitOfBat(StrEnum):
|
||||||
"""Battery level unit of measure."""
|
"""Battery level unit of measure."""
|
||||||
|
|
||||||
|
|
@ -204,6 +211,7 @@ class UnitOfBat(StrEnum):
|
||||||
NORMAL = "normal"
|
NORMAL = "normal"
|
||||||
UNKNOWN = "unknown"
|
UNKNOWN = "unknown"
|
||||||
|
|
||||||
|
|
||||||
BATTERY_LEVEL: list[UnitOfBat] = [
|
BATTERY_LEVEL: list[UnitOfBat] = [
|
||||||
UnitOfBat.LOW,
|
UnitOfBat.LOW,
|
||||||
UnitOfBat.NORMAL,
|
UnitOfBat.NORMAL,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue