Remove leftover modbus.restart action metadata (#181202)

This commit is contained in:
epenet
2026-09-03 20:47:10 +02:00
committed by GitHub
parent c1bdb2de02
commit e1b4ddca89
5 changed files with 0 additions and 29 deletions
-2
View File
@@ -148,11 +148,9 @@ CALL_TYPE_X_REGISTER_HOLDINGS = "holdings"
SERVICE_WRITE_COIL = "write_coil"
SERVICE_WRITE_REGISTER = "write_register"
SERVICE_STOP = "stop"
SERVICE_RESTART = "restart"
# dispatcher signals
SIGNAL_STOP_ENTITY = "modbus.stop"
SIGNAL_START_ENTITY = "modbus.start"
# integration names
DEFAULT_HUB = "modbus_hub"
@@ -3,9 +3,6 @@
"reload": {
"service": "mdi:reload"
},
"restart": {
"service": "mdi:restart"
},
"stop": {
"service": "mdi:stop"
},
@@ -349,13 +349,6 @@ class ModbusHub:
)
return True
async def async_restart(self) -> None:
"""Reconnect client."""
if self._client:
await self.async_close()
await self.async_setup()
async def async_close(self) -> None:
"""Disconnect client."""
self.event_connected.set()
@@ -54,10 +54,3 @@ stop:
default: "modbus_hub"
selector:
text:
restart:
fields:
hub:
example: "hub1"
default: "modbus_hub"
selector:
text:
@@ -26,16 +26,6 @@
"description": "Reloads all Modbus entities.",
"name": "[%key:common::action::reload%]"
},
"restart": {
"description": "Restarts a Modbus hub (if running, stops then starts).",
"fields": {
"hub": {
"description": "[%key:component::modbus::services::write_coil::fields::hub::description%]",
"name": "[%key:component::modbus::services::write_coil::fields::hub::name%]"
}
},
"name": "[%key:common::action::restart%]"
},
"stop": {
"description": "Stops a Modbus hub.",
"fields": {