mirror of
https://github.com/home-assistant/core.git
synced 2025-07-31 11:18:00 +02:00
Set integration type for wyoming (#117519)
* Set integration type to wyoming * Add entry_type
This commit is contained in:
@@ -3,7 +3,7 @@
|
|||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
|
|
||||||
from homeassistant.helpers import entity
|
from homeassistant.helpers import entity
|
||||||
from homeassistant.helpers.device_registry import DeviceInfo
|
from homeassistant.helpers.device_registry import DeviceEntryType, DeviceInfo
|
||||||
|
|
||||||
from .const import DOMAIN
|
from .const import DOMAIN
|
||||||
from .satellite import SatelliteDevice
|
from .satellite import SatelliteDevice
|
||||||
@@ -21,4 +21,5 @@ class WyomingSatelliteEntity(entity.Entity):
|
|||||||
self._attr_unique_id = f"{device.satellite_id}-{self.entity_description.key}"
|
self._attr_unique_id = f"{device.satellite_id}-{self.entity_description.key}"
|
||||||
self._attr_device_info = DeviceInfo(
|
self._attr_device_info = DeviceInfo(
|
||||||
identifiers={(DOMAIN, device.satellite_id)},
|
identifiers={(DOMAIN, device.satellite_id)},
|
||||||
|
entry_type=DeviceEntryType.SERVICE,
|
||||||
)
|
)
|
||||||
|
@@ -5,6 +5,7 @@
|
|||||||
"config_flow": true,
|
"config_flow": true,
|
||||||
"dependencies": ["assist_pipeline"],
|
"dependencies": ["assist_pipeline"],
|
||||||
"documentation": "https://www.home-assistant.io/integrations/wyoming",
|
"documentation": "https://www.home-assistant.io/integrations/wyoming",
|
||||||
|
"integration_type": "service",
|
||||||
"iot_class": "local_push",
|
"iot_class": "local_push",
|
||||||
"requirements": ["wyoming==1.5.3"],
|
"requirements": ["wyoming==1.5.3"],
|
||||||
"zeroconf": ["_wyoming._tcp.local."]
|
"zeroconf": ["_wyoming._tcp.local."]
|
||||||
|
@@ -6858,7 +6858,7 @@
|
|||||||
},
|
},
|
||||||
"wyoming": {
|
"wyoming": {
|
||||||
"name": "Wyoming Protocol",
|
"name": "Wyoming Protocol",
|
||||||
"integration_type": "hub",
|
"integration_type": "service",
|
||||||
"config_flow": true,
|
"config_flow": true,
|
||||||
"iot_class": "local_push"
|
"iot_class": "local_push"
|
||||||
},
|
},
|
||||||
|
Reference in New Issue
Block a user