Complete device registry update (#34500)

* Add manufacturer and model parameters to device registry update
  method.
This commit is contained in:
Martin Hjelmare 2020-04-21 19:40:16 +02:00 committed by GitHub
parent 220baed33a
commit fbde040f59
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 0 deletions

View file

@ -152,6 +152,8 @@ class DeviceRegistry:
device_id,
*,
area_id=_UNDEF,
manufacturer=_UNDEF,
model=_UNDEF,
name=_UNDEF,
name_by_user=_UNDEF,
new_identifiers=_UNDEF,
@ -163,6 +165,8 @@ class DeviceRegistry:
return self._async_update_device(
device_id,
area_id=area_id,
manufacturer=manufacturer,
model=model,
name=name,
name_by_user=name_by_user,
new_identifiers=new_identifiers,