From e4b67c95742ec7a048b310d3cff9f0006dfa2f85 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sat, 25 Jun 2016 06:43:44 +0200 Subject: [PATCH] Add persistent notification component (#1844) --- .../components/persistent_notification.py | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 homeassistant/components/persistent_notification.py diff --git a/homeassistant/components/persistent_notification.py b/homeassistant/components/persistent_notification.py new file mode 100644 index 00000000000..6c784eaf5ca --- /dev/null +++ b/homeassistant/components/persistent_notification.py @@ -0,0 +1,18 @@ +""" +A component which is collecting configuration errors. + +For more details about this component, please refer to the documentation at +https://home-assistant.io/components/persistent_notification/ +""" + +DOMAIN = "persistent_notification" + + +def create(hass, entity, msg): + """Create a state for an error.""" + hass.states.set('{}.{}'.format(DOMAIN, entity), msg) + + +def setup(hass, config): + """Setup the persistent notification component.""" + return True