Fix state MQTT topic
This commit is contained in:
parent
1556a4d362
commit
274adf9f32
1 changed files with 1 additions and 1 deletions
2
main.py
2
main.py
|
@ -36,7 +36,7 @@ async def on_ready():
|
|||
@HobbyBot.command(description='Bitlair Space State')
|
||||
async def state(ctx):
|
||||
async with ctx.typing():
|
||||
spaceState = subscribe.simple("bitlair/state/bitlair", hostname="bitlair.nl").payload.decode()
|
||||
spaceState = subscribe.simple("bitlair/state", hostname="bitlair.nl").payload.decode()
|
||||
if spaceState == "open":
|
||||
await ctx.send("Bitlair is OPEN! :sunglasses:")
|
||||
elif spaceState == "closed":
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue