diff --git a/custom_components/sigmesh_gateway/platforms/binary_sensor.py b/custom_components/sigmesh_gateway/binary_sensor.py similarity index 100% rename from custom_components/sigmesh_gateway/platforms/binary_sensor.py rename to custom_components/sigmesh_gateway/binary_sensor.py diff --git a/custom_components/sigmesh_gateway/config_flow.py b/custom_components/sigmesh_gateway/config_flow.py index 26ab0dd..2ec74b3 100644 --- a/custom_components/sigmesh_gateway/config_flow.py +++ b/custom_components/sigmesh_gateway/config_flow.py @@ -77,10 +77,6 @@ class SigMeshGatewayConfigFlow(config_entries.ConfigFlow, domain=DOMAIN): class SigMeshGatewayOptionsFlow(config_entries.OptionsFlow): """SigMesh Gateway 选项流程.""" - def __init__(self, config_entry: config_entries.ConfigEntry) -> None: - """初始化选项流程.""" - self.config_entry = config_entry - async def async_step_init(self, user_input: dict[str, Any] | None = None) -> FlowResult: """管理选项.""" if user_input is not None: diff --git a/custom_components/sigmesh_gateway/platforms/device_tracker.py b/custom_components/sigmesh_gateway/device_tracker.py similarity index 100% rename from custom_components/sigmesh_gateway/platforms/device_tracker.py rename to custom_components/sigmesh_gateway/device_tracker.py diff --git a/custom_components/sigmesh_gateway/icons/icon.png b/custom_components/sigmesh_gateway/icons/icon.png new file mode 100644 index 0000000..7e08f52 Binary files /dev/null and b/custom_components/sigmesh_gateway/icons/icon.png differ diff --git a/custom_components/sigmesh_gateway/platforms/light.py b/custom_components/sigmesh_gateway/light.py similarity index 100% rename from custom_components/sigmesh_gateway/platforms/light.py rename to custom_components/sigmesh_gateway/light.py diff --git a/custom_components/sigmesh_gateway/manifest.json b/custom_components/sigmesh_gateway/manifest.json index 08549a0..d2caf93 100644 --- a/custom_components/sigmesh_gateway/manifest.json +++ b/custom_components/sigmesh_gateway/manifest.json @@ -9,5 +9,7 @@ "requirements": ["pyserial-asyncio-fast>=0.6"], "config_flow": true, "iot_class": "local_push", - "loggers": ["sigmesh_gateway"] + "loggers": ["sigmesh_gateway"], + "quality_scale": "internal", + "integration_type": "device" } diff --git a/custom_components/sigmesh_gateway/platforms/sensor.py b/custom_components/sigmesh_gateway/sensor.py similarity index 100% rename from custom_components/sigmesh_gateway/platforms/sensor.py rename to custom_components/sigmesh_gateway/sensor.py diff --git a/custom_components/sigmesh_gateway/platforms/switch.py b/custom_components/sigmesh_gateway/switch.py similarity index 100% rename from custom_components/sigmesh_gateway/platforms/switch.py rename to custom_components/sigmesh_gateway/switch.py