1 """Reusable utilities for the Plum Lightpad component."""
3 from plumlightpad
import Plum
9 async
def load_plum(username: str, password: str, hass: HomeAssistant) -> Plum:
10 """Initialize Plum Lightpad API and load metadata stored in the cloud."""
11 plum = Plum(username, password)
13 await plum.loadCloudData(cloud_web_session)
Plum load_plum(str username, str password, HomeAssistant hass)
aiohttp.ClientSession async_get_clientsession(HomeAssistant hass, bool verify_ssl=True, socket.AddressFamily family=socket.AF_UNSPEC, ssl_util.SSLCipherList ssl_cipher=ssl_util.SSLCipherList.PYTHON_DEFAULT)