Compare commits

...
5 Commits
Author SHA1 Message Date
sredfern fb73daef62 Add support for EL30V2 device in manifest and device builder
HACS Action / HACS Action (push) Failing after 1m14s
Validate with hassfest / validate (push) Failing after 6s
Unittests / test (push) Failing after 37s
2025-08-04 23:23:53 +10:00
Patrick762 96a5cd4ee1 Merge pull request #174 from Patrick762/option-flow-update
Remove deprecated constructor in option flow
2025-06-14 21:16:32 +02:00
Patrick762 5204c165d8 bump version 2025-06-14 21:16:12 +02:00
Patrick762 869f80314b fix option flow 2025-06-14 21:12:02 +02:00
Patrick762 9ec0b539e1 remove deprecated constructor in option flow 2025-06-14 20:51:11 +02:00
4 changed files with 16 additions and 4 deletions

No files matched your search

@@ -0,0 +1,8 @@
"""Elite 30 V2 fields."""
from ..base_devices.ProtocolV2Device import ProtocolV2Device
class EL30V2(ProtocolV2Device):
def __init__(self, address: str, sn: str):
super().__init__(address, "EL30V2", sn)
@@ -17,9 +17,10 @@ from ..devices.ep500p import EP500P
from ..devices.ep600 import EP600
from ..devices.ep760 import EP760
from ..devices.ep800 import EP800
from ..devices.el30v2 import EL30V2
DEVICE_NAME_RE = re.compile(
r"^(AC60|AC70|AC70P|AC180|AC180P|AC200L|AC200M|AC300|AC500|EB3A|EP500|EP500P|EP600|EP760|EP800)(\d+)$"
r"^(AC60|AC70|AC70P|AC180|AC180P|AC200L|AC200M|AC300|AC500|EB3A|EP500|EP500P|EP600|EP760|EP800|EL30V2)(\d+)$"
)
@@ -55,6 +56,8 @@ def build_device(address: str, name: str):
return EP760(address, match[2])
if match[1] == "EP800":
return EP800(address, match[2])
if match[1] == "EL30V2":
return EL30V2(address, match[2])
def get_type_by_bt_name(bt_name: str):
+1 -1
View File
@@ -130,7 +130,7 @@ class OptionsFlowHandler(config_entries.OptionsFlow):
def __init__(self, config_entry: config_entries.ConfigEntry) -> None:
"""Initialize options flow."""
self.config_entry = config_entry
super().__init__()
async def async_step_init(
self, user_input: dict[str, Any] | None = None
+3 -2
View File
@@ -14,7 +14,8 @@
{ "local_name": "EP600*" },
{ "local_name": "EP760*" },
{ "local_name": "EP800*" },
{ "local_name": "PBOX*" }
{ "local_name": "PBOX*" },
{ "local_name": "EL30V2*" }
],
"codeowners": ["@Patrick762"],
"config_flow": true,
@@ -24,5 +25,5 @@
"iot_class": "local_polling",
"issue_tracker": "https://github.com/Patrick762/hassio-bluetti-bt/issues",
"requirements": [],
"version": "0.1.4"
"version": "0.1.5"
}