mirror of
https://github.com/home-assistant/core.git
synced 2026-09-16 05:29:11 +01:00
Remove leftover modbus.restart action metadata (#181202)
This commit is contained in:
@@ -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": {
|
||||
|
||||
Reference in New Issue
Block a user