Fabian Peter Hammerle
|
e7f4e94687
tests: fix indeterministic log msg checks
|
vor 4 Jahren |
Fabian Peter Hammerle
|
3685a4b488
fix mqtt run test on python3.5
|
vor 4 Jahren |
Fabian Peter Hammerle
|
c790a93981
instruct sessions to lock on systemctl/hostname/lock-all-sessions
|
vor 4 Jahren |
Fabian Peter Hammerle
|
9bb7a600ff
refactor: add attr poweroff_delay to state class
|
vor 4 Jahren |
Fabian Peter Hammerle
|
8817fd95e8
refactor: new class _MQTTActionSchedulePoweroff
|
vor 4 Jahren |
Fabian Peter Hammerle
|
292046b88d
added command line option --mqtt-disable-tls
|
vor 4 Jahren |
Fabian Peter Hammerle
|
f1371e1fec
refactor: move some constants & methods to new systemctl_mqtt/_dbus.py
|
vor 4 Jahren |
Fabian Peter Hammerle
|
56dc5bad31
prepare-for-shutdown: publish config for home assistant to enable automatic discovery
|
vor 4 Jahren |
Fabian Peter Hammerle
|
47bb97bb07
retain msgs on systemctl/hostname/preparing-for-shutdown
|
vor 4 Jahren |
Fabian Peter Hammerle
|
20dafb5c80
document shutdown report on systemctl/hostname/preparing-for-shutdown
|
vor 4 Jahren |
Fabian Peter Hammerle
|
737289de2d
refactor mqtt test: remove superfluous mock
|
vor 4 Jahren |
Fabian Peter Hammerle
|
cfe54ed0c1
subscribe to logind's PrepareForShutdown signal
|
vor 4 Jahren |
Fabian Peter Hammerle
|
953b0db210
refactor: rename _Settings -> _State
|
vor 4 Jahren |
Fabian Peter Hammerle
|
cea2382a94
tests: replace broken fixture with standard function
|
vor 4 Jahren |
Fabian Peter Hammerle
|
9cdc01bbdb
refactor: split _run test
|
vor 4 Jahren |
Fabian Peter Hammerle
|
45fe3cfc23
acquire shutdown inhibitor lock to reserve time to send mqtt msg before shutdown
|
vor 4 Jahren |
Fabian Peter Hammerle
|
aee870c751
prepare glib loop to receive dbus signals
|
vor 4 Jahren |
Fabian Peter Hammerle
|
6fc954ba94
refactor: replaced paho.mqtt.client.Client.on_message with specific .message_callback_add
|
vor 4 Jahren |
Fabian Peter Hammerle
|
5327714546
mqtt test: remove unused import
|
vor 4 Jahren |
Fabian Peter Hammerle
|
39b6bf4ea2
fix mqtt tests on python3.8
|
vor 4 Jahren |
Fabian Peter Hammerle
|
f28d4546ea
adapt _run tests: no longer mock entire client class
|
vor 4 Jahren |
Fabian Peter Hammerle
|
f9af627eef
tests / python3.5: fix AttributeError due to unavailable MagicMock.assert_called_once
|
vor 4 Jahren |
Fabian Peter Hammerle
|
69d25fe917
fix _mqtt_on_message test
|
vor 4 Jahren |
Fabian Peter Hammerle
|
9c115aef90
enable tls
|
vor 4 Jahren |
Fabian Peter Hammerle
|
0d1e0eb16c
tests: added license header
|
vor 4 Jahren |
Fabian Peter Hammerle
|
1574063886
mqtt message on topic systemctl/hostname/poweroff schedules poweroff with delay of 4 seconds
|
vor 4 Jahren |