remove wildcard stuff
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2021-06-12 20:30:09 +02:00
parent 10eca03eb1
commit ad567ba2d1
2 changed files with 2 additions and 27 deletions

View File

@@ -13,30 +13,6 @@ __module_name__ = "resources"
__version__text__ = "1"
class AllDevicesOfflineResource(Resource):
"""
Shut down all devices
"""
def post(self):
"""
Shut down every device
:return:
"""
mqtt.publish(f"{config.MQTT_COMMAND_TOPIC}/+", {"command": "offline"})
class AllDevicesOnlineResource(Resource):
"""
Bring every device online
"""
def post(self):
"""
Bring every device online
:return:
"""
mqtt.publish(f"{config.MQTT_COMMAND_TOPIC}/+", {"command": "online"})
class DeviceOfflineResrouce(Resource):
"""
Bring a device offline