* qnap_qsw: add Update platform Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com> * qnap_qsw: update: allow init if firmware coordinator fails QSW API can return an error if update servers aren't reachable and this prevents the integration from loading. Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com> * tests: qnap_qsw: achieve 100% coverage Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
17 lines
374 B
Python
17 lines
374 B
Python
"""Constants for the QNAP QSW integration."""
|
|
|
|
from typing import Final
|
|
|
|
ATTR_MAX: Final = "max"
|
|
ATTR_MESSAGE: Final = "message"
|
|
|
|
DOMAIN: Final = "qnap_qsw"
|
|
MANUFACTURER: Final = "QNAP"
|
|
|
|
RPM: Final = "rpm"
|
|
|
|
QSW_COORD_DATA: Final = "coordinator-data"
|
|
QSW_COORD_FW: Final = "coordinator-firmware"
|
|
QSW_REBOOT = "reboot"
|
|
QSW_TIMEOUT_SEC: Final = 25
|
|
QSW_UPDATE: Final = "update"
|