mirror of
https://github.com/fmtr/haco.git
synced 2026-11-25 01:16:28 -05:00
Refactor Tasmota announce data into object
This commit is contained in:
parent
4db6b29b22
commit
d5f49a7729
7 changed files with 89 additions and 31 deletions
|
|
@ -230,6 +230,8 @@ class Daemon
|
|||
'timestamp': tasmota.rtc(),
|
||||
'config_id': self.config_id,
|
||||
'topic': tools.mqtt.get_topic(),
|
||||
'prefix': tasmota.cmd('Prefix'),
|
||||
'fulltopic': tasmota.cmd('FullTopic')['FullTopic'],
|
||||
'device_name': tools.platform.get_device_name(),
|
||||
}
|
||||
end
|
||||
|
|
|
|||
|
|
@ -26,3 +26,7 @@ patches:
|
|||
path: haco_version.be
|
||||
pattern: \bvar\s+VERSION\s*=\s*'{version}'
|
||||
|
||||
code_mask: |
|
||||
import tools
|
||||
downloader=tools.web.Downloader('{url}',nil,/->print(tasmota.cmd('restart 1')))
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue