Prettier Zeroconf discovery name for Axis devices (#45216)

* Change zeroconf name to be based of prettier name rather than hostname to help user understand what device is discovered
Have a full zeroconf discovery message in tests
Clean up unusued globals

* Use non-formatted serial number for config entry title as well
This commit is contained in:
Robert Svensson 2021-01-16 18:59:57 +01:00 committed by GitHub
parent 8151721fbc
commit 3cc45697cb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 24 additions and 27 deletions

View file

@ -378,7 +378,7 @@ async def test_update_address(hass):
data={
"host": "2.3.4.5",
"port": 80,
"hostname": "name",
"name": "name",
"properties": {"macaddress": MAC},
},
context={"source": SOURCE_ZEROCONF},