Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions homeassistant/components/emulated_hue/hue_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
6 changes: 4 additions & 2 deletions tests/components/emulated_hue/test_hue_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down