added first files
This commit is contained in:
1 parent
76305eea24
commit
1c29ffe7a2
6 files changed
+136
No files matched your search
@@ -0,0 +1,24 @@
|
||||
"""Bluetti Bluetooth Integration"""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
import logging
|
||||
|
||||
from homeassistant.config_entries import ConfigEntry
|
||||
from homeassistant.const import CONF_ADDRESS, Platform
|
||||
from homeassistant.core import HomeAssistant
|
||||
|
||||
_LOGGER = logging.getLogger(__name__)
|
||||
PLATFORMS: [Platform] = []
|
||||
|
||||
|
||||
async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:
|
||||
"""Set up Bluetti Powerstation from a config entry."""
|
||||
|
||||
address = entry.data.get(CONF_ADDRESS)
|
||||
|
||||
if address is None:
|
||||
return False
|
||||
|
||||
_LOGGER.error(f"Device address: {address}")
|
||||
return True
|
||||
Reference in new issue
Block a user