Skip to content

Commit

Permalink
Add shutter capabilities to BNAB, BNAS and BNMS (#484)
Browse files Browse the repository at this point in the history
  • Loading branch information
cgtobi authored Dec 26, 2023
1 parent b49a3bb commit bce27db
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Fixed

- Duplicates in entity names (https://github.com/home-assistant/core/issues/88792)
- Add shutter capabilities to BNAB, BNAS and BNMS (https://github.com/home-assistant/core/issues/106392)

### Security

Expand Down
10 changes: 5 additions & 5 deletions src/pyatmo/modules/bticino.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

import logging

from pyatmo.modules.module import Dimmer, Module, Switch
from pyatmo.modules.module import Dimmer, Module, Shutter, Switch

LOG = logging.getLogger(__name__)

Expand Down Expand Up @@ -32,20 +32,20 @@ class BNXM(Module):
"""BTicino X meter."""


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


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


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


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


class BNTH(Module):
Expand Down
2 changes: 1 addition & 1 deletion src/pyatmo/modules/device_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ class DeviceType(str, Enum):
BNMS = "BNMS" # motorized shade
BNAS = "BNAS" # automatic shutter
BNAB = "BNAB" # automatic blind
BNMH = "BNMH" # automatic blind
BNMH = "BNMH" # MyHome server
BNTH = "BNTH" # thermostat
BNFC = "BNFC" # fan coil
BNTR = "BNTR" # radiator
Expand Down

0 comments on commit bce27db

Please sign in to comment.