Reload mobile app notify service upon device name change, add device name to all webhook logs (#39364)

* Add device name to all webhook logs to help with multiple devices

* Reload notifications when we update the registration, update from rebase

* Make hassfest happy

* Adjust caplog test to accomodate log message change

Co-authored-by: J. Nick Koston <nick@koston.org>
This commit is contained in:
Daniel ShokouhiandJ. Nick Koston authored and GitHub committed 2020-08-28 15:13:43 -05:00
1 parent c163d4a4b5
commit d587f134ca
3 files changed
+28 -13

No files matched your search

+2 -2
View File
@@ -122,7 +122,7 @@ async def test_sensor_id_no_dupes(hass, create_registrations, webhook_client, ca
assert reg_json == {"success": True}
await hass.async_block_till_done()
assert "Re-register existing sensor" not in caplog.text
assert "Re-register" not in caplog.text
entity = hass.states.get("sensor.test_1_battery_state")
assert entity is not None
@@ -143,7 +143,7 @@ async def test_sensor_id_no_dupes(hass, create_registrations, webhook_client, ca
assert dupe_reg_json == {"success": True}
await hass.async_block_till_done()
assert "Re-register existing sensor" in caplog.text
assert "Re-register" in caplog.text
entity = hass.states.get("sensor.test_1_battery_state")
assert entity is not None