Change via_hub to via_device (#45804)

This commit is contained in:
Mick Vleeshouwer 2021-02-01 07:55:18 +01:00 committed by GitHub
parent 3e080f88c6
commit 1d94c10bb5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -175,7 +175,7 @@ class RoonDevice(MediaPlayerEntity):
"name": self.name, "name": self.name,
"manufacturer": "RoonLabs", "manufacturer": "RoonLabs",
"model": dev_model, "model": dev_model,
"via_hub": (DOMAIN, self._server.roon_id), "via_device": (DOMAIN, self._server.roon_id),
} }
def update_data(self, player_data=None): def update_data(self, player_data=None):

View File

@ -188,7 +188,7 @@ class SomfyEntity(CoordinatorEntity, Entity):
"identifiers": {(DOMAIN, self.unique_id)}, "identifiers": {(DOMAIN, self.unique_id)},
"name": self.name, "name": self.name,
"model": self.device.type, "model": self.device.type,
"via_hub": (DOMAIN, self.device.parent_id), "via_device": (DOMAIN, self.device.parent_id),
# For the moment, Somfy only returns their own device. # For the moment, Somfy only returns their own device.
"manufacturer": "Somfy", "manufacturer": "Somfy",
} }