mirror of
https://github.com/onyx-and-iris/xair-api-python.git
synced 2024-11-22 04:40:58 +00:00
add poetry script
This commit is contained in:
parent
eacf1d1c61
commit
d765c5b027
@ -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()
|
||||
|
@ -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"
|
||||
|
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user