Skip to content

Commit

Permalink
fix: initial device state after setup flow
Browse files Browse the repository at this point in the history
Set the device state to connected after adding a new device in the
setup flow. Otherwise, the web-configurator might show the integration
as disconnected.
  • Loading branch information
zehnm committed Dec 23, 2024
1 parent 38f0cf2 commit a960c8e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions intg-denonavr/driver.py
Original file line number Diff line number Diff line change
Expand Up @@ -315,6 +315,7 @@ def _register_available_entities(device: config.AvrDevice, receiver: avr.DenonDe
def on_device_added(device: config.AvrDevice) -> None:
"""Handle a newly added device in the configuration."""
_LOG.debug("New device added: %s", device)
_LOOP.create_task(api.set_device_state(ucapi.DeviceStates.CONNECTED)) # just to make sure the device state is set
_configure_new_avr(device, connect=False)


Expand Down

0 comments on commit a960c8e

Please sign in to comment.