custom-components / pyscript

Pyscript adds rich Python scripting to HASS
Apache License 2.0
873 stars 46 forks source link

adds state.exist classmethod to check whether an entity_id exists #634

Closed ALERTua closed 3 weeks ago

ALERTua commented 3 weeks ago

adds state.exist classmethod to check whether an entity_id exists very handy to check things exist before manipulating them to get rid of the exceptions

craigbarratt commented 3 weeks ago

Thanks for the PR!