* 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 |
||
---|---|---|
.. | ||
bluetooth | ||
__init__.py | ||
binary_sensor.py | ||
button.py | ||
climate.py | ||
config_flow.py | ||
const.py | ||
coordinator.py | ||
cover.py | ||
device_trigger.py | ||
diagnostics.py | ||
entity.py | ||
event.py | ||
icons.json | ||
light.py | ||
logbook.py | ||
manifest.json | ||
number.py | ||
select.py | ||
sensor.py | ||
strings.json | ||
switch.py | ||
text.py | ||
update.py | ||
utils.py | ||
valve.py |