Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add shutter capabilities to BNAB, BNAS and BNMS #484

Merged
merged 1 commit into from
Dec 26, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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