add poetry script

This commit is contained in:
onyx-and-iris 2022-10-28 21:07:14 +01:00
parent eacf1d1c61
commit d765c5b027
3 changed files with 9 additions and 2 deletions

View File

@ -26,10 +26,14 @@ class Observer:
print(f"Mute Group 1 is {self._mixer.config.mute_group[0].on}")
if __name__ == "__main__":
def main():
with xair_api.connect("MR18", ip="mixer.local") as mixer:
Observer(mixer)
while cmd := input("<Enter> to exit\n"):
if not cmd:
break
if __name__ == "__main__":
main()

View File

@ -21,3 +21,6 @@ isort = "^5.10.1"
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
[tool.poetry.scripts]
obs = "examples.xair-obs.__main__:main"

View File

@ -109,7 +109,7 @@ def _make_remote(kind: KindMap) -> XAirRemote:
"""
Creates a new XAIR remote class.
The returned class will subclass MAirRemote.
The returned class will subclass XAirRemote.
"""
def init(self, *args, **kwargs):