mirror of
https://github.com/home-assistant/core.git
synced 2025-07-16 01:37:08 +00:00
Add missing name field to emulated_hue config (#87456)
Co-authored-by: J. Nick Koston <nick@koston.org>
This commit is contained in:
parent
04e05af44c
commit
936ffafd27
@ -831,6 +831,7 @@ def create_hue_success_response(
|
||||
def create_config_model(config: Config, request: web.Request) -> dict[str, Any]:
|
||||
"""Create a config resource."""
|
||||
return {
|
||||
"name": "HASS BRIDGE",
|
||||
"mac": "00:00:00:00:00:00",
|
||||
"swversion": "01003542",
|
||||
"apiversion": "1.17.0",
|
||||
|
@ -465,8 +465,9 @@ async def test_discover_full_state(hue_client):
|
||||
|
||||
# Make sure array is correct size
|
||||
assert len(result_json) == 2
|
||||
assert len(config_json) == 6
|
||||
assert len(config_json) == 7
|
||||
assert len(lights_json) >= 1
|
||||
assert "name" in config_json
|
||||
|
||||
# Make sure the config wrapper added to the config is there
|
||||
assert "mac" in config_json
|
||||
@ -505,7 +506,8 @@ async def test_discover_config(hue_client):
|
||||
config_json = await result.json()
|
||||
|
||||
# Make sure array is correct size
|
||||
assert len(config_json) == 6
|
||||
assert len(config_json) == 7
|
||||
assert "name" in config_json
|
||||
|
||||
# Make sure the config wrapper added to the config is there
|
||||
assert "mac" in config_json
|
||||
|
Loading…
x
Reference in New Issue
Block a user