修复设置报错问题

This commit is contained in:
xiaochao
2026-01-13 17:08:19 +08:00
parent b82123637a
commit a98f493909
2 changed files with 2 additions and 5 deletions

View File

@@ -189,14 +189,11 @@ class ConfigFlow(config_entries.ConfigFlow, domain=DOMAIN):
@staticmethod
@callback
def async_get_options_flow(config_entry):
return OptionsFlowHandler(config_entry)
return OptionsFlowHandler()
class OptionsFlowHandler(config_entries.OptionsFlow):
"""处理飞牛NAS的选项流程"""
def __init__(self, config_entry):
self.config_entry = config_entry
async def async_step_init(self, user_input=None):
if user_input is not None:
return self.async_create_entry(title="", data=user_input)

View File

@@ -1,7 +1,7 @@
{
"domain": "fn_nas",
"name": "飞牛NAS",
"version": "1.4.2",
"version": "1.4.3",
"documentation": "https://github.com/xiaochao99/fn_nas",
"dependencies": [],
"codeowners": ["@xiaochao99"],