mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-12-20 18:38:59 +00:00
Send event when add-on changes state (#2608)
* Send event when add-on changes state * fix test
This commit is contained in:
@@ -5,6 +5,7 @@ import logging
|
||||
from awesomeversion import AwesomeVersion
|
||||
|
||||
from supervisor.coresys import CoreSys
|
||||
from supervisor.homeassistant.const import WSEvent, WSType
|
||||
|
||||
|
||||
async def test_send_command(coresys: CoreSys):
|
||||
@@ -18,9 +19,9 @@ async def test_send_command(coresys: CoreSys):
|
||||
)
|
||||
client.async_send_command.assert_called_with(
|
||||
{
|
||||
"type": "supervisor/event",
|
||||
"type": WSType.SUPERVISOR_EVENT,
|
||||
"data": {
|
||||
"event": "supervisor-update",
|
||||
"event": WSEvent.SUPERVISOR_UPDATE,
|
||||
"update_key": "test",
|
||||
"data": {"lorem": "ipsum"},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user