Skip to content

Commit

Permalink
fix missing modules (#458)
Browse files Browse the repository at this point in the history
Co-authored-by: Tobias Sauerwein <[email protected]>
  • Loading branch information
cgtobi and cgtobi authored Oct 16, 2023
1 parent f8e76dd commit 52d58c8
Show file tree
Hide file tree
Showing 4 changed files with 63 additions and 2 deletions.
27 changes: 26 additions & 1 deletion src/pyatmo/modules/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,20 @@
"""Expose submodules."""
from .base_class import Place
from .bticino import BNCX, BNDL, BNEU, BNSL
from .bticino import (
BNAB,
BNAS,
BNCS,
BNCX,
BNDL,
BNEU,
BNFC,
BNMH,
BNMS,
BNSL,
BNTH,
BNTR,
BNXM,
)
from .idiamant import NBG, NBO, NBR, NBS
from .legrand import (
EBU,
Expand All @@ -23,6 +37,7 @@
NLP,
NLPBS,
NLPC,
NLPD,
NLPM,
NLPO,
NLPS,
Expand Down Expand Up @@ -64,6 +79,15 @@
from .somfy import TPSRS

__all__ = [
"BNMS",
"BNAS",
"BNAB",
"BNMH",
"BNTH",
"BNFC",
"BNTR",
"BNXM",
"BNCS",
"BNCX",
"BNDL",
"BNEU",
Expand Down Expand Up @@ -106,6 +130,7 @@
"NLP",
"NLPBS",
"NLPC",
"NLPD",
"NLPM",
"NLPO",
"NLPS",
Expand Down
32 changes: 32 additions & 0 deletions src/pyatmo/modules/bticino.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,35 @@ class BNEU(Module):

class BNCS(Module):
"""BTicino camera."""


class BNXM(Module):
"""BTicino X meter."""


class BNMS(Module):
"""BTicino motorized shade."""


class BNAS(Module):
"""BTicino automatic shutter."""


class BNAB(Module):
"""BTicino automatic blind."""


class BNMH(Module):
"""BTicino automatic blind."""


class BNTH(Module):
"""BTicino thermostat."""


class BNFC(Module):
"""BTicino fan coil."""


class BNTR(Module):
"""BTicino radiator thermostat."""
2 changes: 1 addition & 1 deletion src/pyatmo/modules/device_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ class DeviceType(str, Enum):
NLUF = "NLUF" # Legrand device stub
NLAS = "NLAS" # Legrand wireless batteryless scene switch
NLUP = "NLUP" # Legrand device stub
NLLF = "NLLF" # Legrand device stub
NLLF = "NLLF" # Legrand Centralized Ventilation Control
NLTS = "NLTS" # Legrand motion sensor stub

# BTicino Classe 300 EOS
Expand Down
4 changes: 4 additions & 0 deletions src/pyatmo/modules/legrand.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,3 +155,7 @@ class EBU(Module):

class NLTS(Module):
"""NLTS motion sensor."""


class NLPD(FirmwareMixin, SwitchMixin, Module):
"""NLPD dry contact."""

0 comments on commit 52d58c8

Please sign in to comment.