Getting started with bridges

This commit is contained in:
Maximilian Giller 2024-07-09 03:25:14 +02:00
parent a1f992856b
commit f2c8d6885d
6 changed files with 18 additions and 0 deletions

View file

View file

@ -0,0 +1,12 @@
class Bridge:
def __init__(self, *, id: str, type: str) -> None:
self._id = id
self._type = type
@property
def id(self) -> str:
return self._id
@property
def type(self) -> str:
return self._type

View file

0
src/mash/bridges/hue.py Normal file
View file

View file

View file

@ -0,0 +1,6 @@
from mash.bridges.bridge import Bridge
class Z2mBridge(Bridge):
def __init__(self, *, id: str) -> None:
super().__init__(id=id, type="zigbee2mqtt")