From b35140ca7aeade99963b9c3c209bd8df71bd09e2 Mon Sep 17 00:00:00 2001 From: Sian Date: Sun, 4 Dec 2022 05:14:15 +1030 Subject: [PATCH] Dev (#16) * Properly add Sequence schema for script * Version Bump --- custom_components/switch_manager/manifest.json | 2 +- custom_components/switch_manager/models.py | 2 +- package.json | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/custom_components/switch_manager/manifest.json b/custom_components/switch_manager/manifest.json index 0f85aeee..e4f6c062 100644 --- a/custom_components/switch_manager/manifest.json +++ b/custom_components/switch_manager/manifest.json @@ -1,7 +1,7 @@ { "domain": "switch_manager", "name": "Switch Manager", - "version": "0.0.7", + "version": "0.0.8", "documentation": "https://github.com/Sian-Lee-SA/switch_manager", "dependencies": ["panel_custom", "websocket_api", "http", "frontend", "script", "mqtt"], "requirements": [], diff --git a/custom_components/switch_manager/models.py b/custom_components/switch_manager/models.py index 0577ac1e..c2f55a58 100644 --- a/custom_components/switch_manager/models.py +++ b/custom_components/switch_manager/models.py @@ -47,7 +47,7 @@ def __init__( self, hass: HomeAssistant, switch_id, button_index, index, bluepri if self.active: self.script = Script( hass=self._hass, - sequence=self.sequence, + sequence=cv.SCRIPT_SCHEMA(self.sequence), name=f"{DOMAIN}_{switch_id}_{button_index}_{index}", domain=DOMAIN, logger=LOGGER, diff --git a/package.json b/package.json index 5dfc22e5..ec90ee6a 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "switch_manager", "private": true, - "version": "0.0.7", + "version": "0.0.8", "description": "Home Assistant Frontend for Switch Manager", "scripts": { "build": "rollup -c",