* Add initial cloud auth * Move hass.data to a dict * Move mode into helper * Fix bugs afte refactor * Add tests * Clean up scripts file after test config * Lint * Update __init__.py
10 lines
212 B
Python
10 lines
212 B
Python
"""Utilities for the cloud integration."""
|
|
from .const import DOMAIN
|
|
|
|
|
|
def get_mode(hass):
|
|
"""Return the current mode of the cloud component.
|
|
|
|
Async friendly.
|
|
"""
|
|
return hass.data[DOMAIN]['mode']
|