mirror of
https://github.com/xiaochao99/fn_nas
synced 2026-01-14 08:34:58 +00:00
修复设置报错问题
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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"],
|
||||
|
||||
Reference in New Issue
Block a user