mirror of
https://github.com/anxms/fn_nas.git
synced 2025-10-15 09:38:26 +00:00
修复ha中关闭飞牛系统电脑报错问题
This commit is contained in:
@@ -421,6 +421,14 @@ class FlynasCoordinator(DataUpdateCoordinator):
|
||||
|
||||
return self.get_default_data()
|
||||
|
||||
async def shutdown_system(self):
|
||||
"""关闭系统 - 委托给SystemManager"""
|
||||
return await self.system_manager.shutdown_system()
|
||||
|
||||
async def reboot_system(self):
|
||||
"""重启系统 - 委托给SystemManager"""
|
||||
return await self.system_manager.reboot_system()
|
||||
|
||||
class UPSDataUpdateCoordinator(DataUpdateCoordinator):
|
||||
def __init__(self, hass: HomeAssistant, config, main_coordinator):
|
||||
self.config = config
|
||||
|
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"domain": "fn_nas",
|
||||
"name": "飞牛NAS",
|
||||
"version": "1.3.6",
|
||||
"version": "1.3.7",
|
||||
"documentation": "https://github.com/anxms/fn_nas",
|
||||
"dependencies": [],
|
||||
"codeowners": ["@anxms"],
|
||||
|
Reference in New Issue
Block a user