mirror of
https://github.com/sususweet/midea-meiju-codec.git
synced 2025-11-12 16:01:54 +00:00
feat: change entity for water heater.
This commit is contained in:
@@ -140,11 +140,6 @@ async def update_listener(hass: HomeAssistant, config_entry: ConfigEntry):
|
||||
|
||||
async def async_setup(hass: HomeAssistant, config: ConfigType):
|
||||
hass.data.setdefault(DOMAIN, {})
|
||||
|
||||
# 使用Home Assistant配置目录而不是当前工作目录
|
||||
config_dir = hass.config.path(DOMAIN)
|
||||
os.makedirs(config_dir, exist_ok=True)
|
||||
|
||||
os.makedirs(hass.config.path(STORAGE_PATH), exist_ok=True)
|
||||
lua_path = hass.config.path(STORAGE_PATH)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user