* Don't allow duplicate nightscout configs * Fix nightscout translations * Remove unnecessary should_poll method * Remove SVG attribute, as it was duplicating the state * Use aiohttp client session from HA * Move validate_input outside the config class * Use the entry unique_id on the sensor * Move create entity logic * Handle unexpected exception on Nightscout config
8 lines
164 B
Python
8 lines
164 B
Python
"""Constants for the Nightscout integration."""
|
|
|
|
DOMAIN = "nightscout"
|
|
|
|
ATTR_DEVICE = "device"
|
|
ATTR_DATE = "date"
|
|
ATTR_DELTA = "delta"
|
|
ATTR_DIRECTION = "direction"
|