Getting started with bridges
This commit is contained in:
parent
a1f992856b
commit
f2c8d6885d
6 changed files with 18 additions and 0 deletions
0
src/mash/bridges/bedscale.py
Normal file
0
src/mash/bridges/bedscale.py
Normal file
12
src/mash/bridges/bridge.py
Normal file
12
src/mash/bridges/bridge.py
Normal 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
|
0
src/mash/bridges/fritzbox.py
Normal file
0
src/mash/bridges/fritzbox.py
Normal file
0
src/mash/bridges/hue.py
Normal file
0
src/mash/bridges/hue.py
Normal file
0
src/mash/bridges/matrixclock.py
Normal file
0
src/mash/bridges/matrixclock.py
Normal file
6
src/mash/bridges/zigbee2mqtt.py
Normal file
6
src/mash/bridges/zigbee2mqtt.py
Normal 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")
|
Loading…
Reference in a new issue