Skip to content

Commit

Permalink
🚸 refacto publisher
Browse files Browse the repository at this point in the history
  • Loading branch information
Mips2648 committed May 13, 2024
1 parent 30506a6 commit 8691df4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions jeedomdaemon/base_daemon.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,12 @@ async def on_stop(self):
To send feeback to Jeedom you have 4 possibilities depending your use case.
If you are in an async method:
* await self._publisher.send_to_jeedom(payload) will send a single message with the given payload
* await self._publisher.add_change(key, value) will add the key/value to the payload of the next cycle
* await self.send_to_jeedom(payload) will send a single message with the given payload
* await self.add_change(key, value) will add the key/value to the payload of the next cycle
If not:
* self._publisher.run_send_to_jeedom(payload) will send a single message with the given payload
* self._publisher.run_add_change(key, value) will add the key/value to the payload of the next cycle
* self.create_task_send_to_jeedom(payload) will send a single message with the given payload
* self.create_task_add_change(key, value) will add the key/value to the payload of the next cycle
"""
def __init__(self,
config: BaseConfig = BaseConfig(),
Expand Down

0 comments on commit 8691df4

Please sign in to comment.