diff --git a/custom_components/presence_simulation/config_flow.py b/custom_components/presence_simulation/config_flow.py index 15f275b..705f3e5 100644 --- a/custom_components/presence_simulation/config_flow.py +++ b/custom_components/presence_simulation/config_flow.py @@ -60,6 +60,8 @@ async def async_step_init(self, info=None): restore = 0 if "random" in self.config_entry.data: random = self.config_entry.data["random"] + else: + random = 0 data_schema = { vol.Required("entities", default=self.config_entry.data["entities"]): str, diff --git a/custom_components/presence_simulation/manifest.json b/custom_components/presence_simulation/manifest.json index 4d42ab0..88965be 100644 --- a/custom_components/presence_simulation/manifest.json +++ b/custom_components/presence_simulation/manifest.json @@ -5,7 +5,7 @@ "issue_tracker": "https://github.com/slashback100/presence_simulation/issues", "dependencies": ["history", "recorder", "scene"], "config_flow": true, - "version": "1.11", + "version": "1.12", "codeowners": [ "@slashback100" ],