* When an event is received from a script component on a shelly device, this event is send to the hass event bus * Event emitted from a script will be send to the corresponding event entity * Added tests for the shelly script event * The event entity for script are now hidden by default * Forgot to enable script event entities by default for the test * Made serveral improvement for the shelly script event entity - Added device name to event entity - The event entity is now only created when a script has any event types - The test for this entity now uses snapshots * Shelly script event entities will not be create for the BLE scanning script and will now be automatically removed when the script no longer exsists * Changed variable name to avoid confusion with _id * Removed old const from first implementation and removed _script_event_listeners and used _event_listeners instead to listen for script events |
||
---|---|---|
.. | ||
auth | ||
backports | ||
brands | ||
components | ||
generated | ||
helpers | ||
scripts | ||
util | ||
__init__.py | ||
__main__.py | ||
backup_restore.py | ||
block_async_io.py | ||
bootstrap.py | ||
config.py | ||
config_entries.py | ||
const.py | ||
core.py | ||
core_config.py | ||
data_entry_flow.py | ||
exceptions.py | ||
loader.py | ||
package_constraints.txt | ||
py.typed | ||
requirements.py | ||
runner.py | ||
setup.py | ||
strings.json |