mirror of
https://github.com/home-assistant/core.git
synced 2025-04-25 17:57:55 +00:00
Streamline HomeWizard unit test MAC-addresses (#131310)
* Streamline HomeWizard unit test MAC-addresses * Also streamline mock_config_entry
This commit is contained in:
parent
725d49ca9e
commit
521cc67d45
@ -77,12 +77,12 @@ def mock_config_entry() -> MockConfigEntry:
|
||||
title="Device",
|
||||
domain=DOMAIN,
|
||||
data={
|
||||
"product_name": "Product name",
|
||||
"product_type": "product_type",
|
||||
"serial": "aabbccddeeff",
|
||||
"product_name": "P1 Meter",
|
||||
"product_type": "HWE-P1",
|
||||
"serial": "5c2fafabcdef",
|
||||
CONF_IP_ADDRESS: "127.0.0.1",
|
||||
},
|
||||
unique_id="aabbccddeeff",
|
||||
unique_id="HWE-P1_5c2fafabcdef",
|
||||
)
|
||||
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
{
|
||||
"product_type": "HWE-KWH1",
|
||||
"product_name": "kWh meter",
|
||||
"serial": "3c39e7aabbcc",
|
||||
"serial": "5c2fafabcdef",
|
||||
"firmware_version": "3.06",
|
||||
"api_version": "v1"
|
||||
}
|
||||
|
@ -1,7 +1,7 @@
|
||||
{
|
||||
"product_type": "HWE-KWH3",
|
||||
"product_name": "KWh meter 3-phase",
|
||||
"serial": "3c39e7aabbcc",
|
||||
"serial": "5c2fafabcdef",
|
||||
"firmware_version": "3.06",
|
||||
"api_version": "v1"
|
||||
}
|
||||
|
@ -1,7 +1,7 @@
|
||||
{
|
||||
"product_type": "HWE-P1",
|
||||
"product_name": "P1 meter",
|
||||
"serial": "3c39e7aabbcc",
|
||||
"serial": "5c2fafabcdef",
|
||||
"firmware_version": "4.19",
|
||||
"api_version": "v1"
|
||||
}
|
||||
|
@ -1,7 +1,7 @@
|
||||
{
|
||||
"product_type": "HWE-P1",
|
||||
"product_name": "P1 meter",
|
||||
"serial": "3c39e7aabbcc",
|
||||
"serial": "5c2fafabcdef",
|
||||
"firmware_version": "4.19",
|
||||
"api_version": "v1"
|
||||
}
|
||||
|
@ -1,7 +1,7 @@
|
||||
{
|
||||
"product_type": "HWE-P1",
|
||||
"product_name": "P1 meter",
|
||||
"serial": "3c39e7aabbcc",
|
||||
"serial": "5c2fafabcdef",
|
||||
"firmware_version": "4.19",
|
||||
"api_version": "v1"
|
||||
}
|
||||
|
@ -1,7 +1,7 @@
|
||||
{
|
||||
"product_type": "HWE-P1",
|
||||
"product_name": "P1 meter",
|
||||
"serial": "3c39e7aabbcc",
|
||||
"serial": "5c2fafabcdef",
|
||||
"firmware_version": "4.19",
|
||||
"api_version": "v1"
|
||||
}
|
||||
|
@ -1,7 +1,7 @@
|
||||
{
|
||||
"product_type": "HWE-SKT",
|
||||
"product_name": "Energy Socket",
|
||||
"serial": "3c39e7aabbcc",
|
||||
"serial": "5c2fafabcdef",
|
||||
"firmware_version": "3.03",
|
||||
"api_version": "v1"
|
||||
}
|
||||
|
@ -1,7 +1,7 @@
|
||||
{
|
||||
"product_type": "HWE-SKT",
|
||||
"product_name": "Energy Socket",
|
||||
"serial": "3c39e7aabbcc",
|
||||
"serial": "5c2fafabcdef",
|
||||
"firmware_version": "4.07",
|
||||
"api_version": "v1"
|
||||
}
|
||||
|
@ -1,7 +1,7 @@
|
||||
{
|
||||
"product_type": "HWE-WTR",
|
||||
"product_name": "Watermeter",
|
||||
"serial": "3c39e7aabbcc",
|
||||
"serial": "5c2fafabcdef",
|
||||
"firmware_version": "2.03",
|
||||
"api_version": "v1"
|
||||
}
|
||||
|
@ -1,7 +1,7 @@
|
||||
{
|
||||
"product_type": "SDM630-wifi",
|
||||
"product_name": "KWh meter 3-phase",
|
||||
"serial": "3c39e7aabbcc",
|
||||
"serial": "5c2fafabcdef",
|
||||
"firmware_version": "3.06",
|
||||
"api_version": "v1"
|
||||
}
|
||||
|
@ -1,7 +1,7 @@
|
||||
{
|
||||
"product_type": "SDM230-wifi",
|
||||
"product_name": "kWh meter",
|
||||
"serial": "3c39e7aabbcc",
|
||||
"serial": "5c2fafabcdef",
|
||||
"firmware_version": "3.06",
|
||||
"api_version": "v1"
|
||||
}
|
||||
|
@ -1,7 +1,7 @@
|
||||
{
|
||||
"product_type": "SDM630-wifi",
|
||||
"product_name": "KWh meter 3-phase",
|
||||
"serial": "3c39e7aabbcc",
|
||||
"serial": "5c2fafabcdef",
|
||||
"firmware_version": "3.06",
|
||||
"api_version": "v1"
|
||||
}
|
||||
|
@ -42,7 +42,7 @@
|
||||
'previous_unique_id': None,
|
||||
'supported_features': 0,
|
||||
'translation_key': None,
|
||||
'unique_id': 'aabbccddeeff_identify',
|
||||
'unique_id': 'HWE-P1_5c2fafabcdef_identify',
|
||||
'unit_of_measurement': None,
|
||||
})
|
||||
# ---
|
||||
@ -54,7 +54,7 @@
|
||||
'connections': set({
|
||||
tuple(
|
||||
'mac',
|
||||
'3c:39:e7:aa:bb:cc',
|
||||
'5c:2f:af:ab:cd:ef',
|
||||
),
|
||||
}),
|
||||
'disabled_by': None,
|
||||
@ -64,7 +64,7 @@
|
||||
'identifiers': set({
|
||||
tuple(
|
||||
'homewizard',
|
||||
'3c39e7aabbcc',
|
||||
'5c2fafabcdef',
|
||||
),
|
||||
}),
|
||||
'is_new': False,
|
||||
|
@ -3,7 +3,7 @@
|
||||
FlowResultSnapshot({
|
||||
'context': dict({
|
||||
'source': 'zeroconf',
|
||||
'unique_id': 'HWE-P1_aabbccddeeff',
|
||||
'unique_id': 'HWE-P1_5c2fafabcdef',
|
||||
}),
|
||||
'data': dict({
|
||||
'ip_address': '127.0.0.1',
|
||||
@ -31,7 +31,7 @@
|
||||
'pref_disable_polling': False,
|
||||
'source': 'zeroconf',
|
||||
'title': 'P1 meter',
|
||||
'unique_id': 'HWE-P1_aabbccddeeff',
|
||||
'unique_id': 'HWE-P1_5c2fafabcdef',
|
||||
'version': 1,
|
||||
}),
|
||||
'title': 'P1 meter',
|
||||
@ -47,7 +47,7 @@
|
||||
'title_placeholders': dict({
|
||||
'name': 'P1 meter',
|
||||
}),
|
||||
'unique_id': 'HWE-P1_aabbccddeeff',
|
||||
'unique_id': 'HWE-P1_5c2fafabcdef',
|
||||
}),
|
||||
'data': dict({
|
||||
'ip_address': '127.0.0.1',
|
||||
@ -75,7 +75,7 @@
|
||||
'pref_disable_polling': False,
|
||||
'source': 'zeroconf',
|
||||
'title': 'P1 meter',
|
||||
'unique_id': 'HWE-P1_aabbccddeeff',
|
||||
'unique_id': 'HWE-P1_5c2fafabcdef',
|
||||
'version': 1,
|
||||
}),
|
||||
'title': 'P1 meter',
|
||||
@ -89,9 +89,9 @@
|
||||
'confirm_only': True,
|
||||
'source': 'zeroconf',
|
||||
'title_placeholders': dict({
|
||||
'name': 'Energy Socket (aabbccddeeff)',
|
||||
'name': 'Energy Socket (5c2fafabcdef)',
|
||||
}),
|
||||
'unique_id': 'HWE-SKT_aabbccddeeff',
|
||||
'unique_id': 'HWE-SKT_5c2fafabcdef',
|
||||
}),
|
||||
'data': dict({
|
||||
'ip_address': '127.0.0.1',
|
||||
@ -119,7 +119,7 @@
|
||||
'pref_disable_polling': False,
|
||||
'source': 'zeroconf',
|
||||
'title': 'Energy Socket',
|
||||
'unique_id': 'HWE-SKT_aabbccddeeff',
|
||||
'unique_id': 'HWE-SKT_5c2fafabcdef',
|
||||
'version': 1,
|
||||
}),
|
||||
'title': 'Energy Socket',
|
||||
@ -131,7 +131,7 @@
|
||||
FlowResultSnapshot({
|
||||
'context': dict({
|
||||
'source': 'user',
|
||||
'unique_id': 'HWE-P1_3c39e7aabbcc',
|
||||
'unique_id': 'HWE-P1_5c2fafabcdef',
|
||||
}),
|
||||
'data': dict({
|
||||
'ip_address': '2.2.2.2',
|
||||
@ -159,7 +159,7 @@
|
||||
'pref_disable_polling': False,
|
||||
'source': 'user',
|
||||
'title': 'P1 meter',
|
||||
'unique_id': 'HWE-P1_3c39e7aabbcc',
|
||||
'unique_id': 'HWE-P1_5c2fafabcdef',
|
||||
'version': 1,
|
||||
}),
|
||||
'title': 'P1 meter',
|
||||
|
@ -82,8 +82,8 @@
|
||||
}),
|
||||
'entry': dict({
|
||||
'ip_address': '**REDACTED**',
|
||||
'product_name': 'Product name',
|
||||
'product_type': 'product_type',
|
||||
'product_name': 'P1 Meter',
|
||||
'product_type': 'HWE-P1',
|
||||
'serial': '**REDACTED**',
|
||||
}),
|
||||
})
|
||||
@ -171,8 +171,8 @@
|
||||
}),
|
||||
'entry': dict({
|
||||
'ip_address': '**REDACTED**',
|
||||
'product_name': 'Product name',
|
||||
'product_type': 'product_type',
|
||||
'product_name': 'P1 Meter',
|
||||
'product_type': 'HWE-P1',
|
||||
'serial': '**REDACTED**',
|
||||
}),
|
||||
})
|
||||
@ -311,8 +311,8 @@
|
||||
}),
|
||||
'entry': dict({
|
||||
'ip_address': '**REDACTED**',
|
||||
'product_name': 'Product name',
|
||||
'product_type': 'product_type',
|
||||
'product_name': 'P1 Meter',
|
||||
'product_type': 'HWE-P1',
|
||||
'serial': '**REDACTED**',
|
||||
}),
|
||||
})
|
||||
@ -404,8 +404,8 @@
|
||||
}),
|
||||
'entry': dict({
|
||||
'ip_address': '**REDACTED**',
|
||||
'product_name': 'Product name',
|
||||
'product_type': 'product_type',
|
||||
'product_name': 'P1 Meter',
|
||||
'product_type': 'HWE-P1',
|
||||
'serial': '**REDACTED**',
|
||||
}),
|
||||
})
|
||||
@ -497,8 +497,8 @@
|
||||
}),
|
||||
'entry': dict({
|
||||
'ip_address': '**REDACTED**',
|
||||
'product_name': 'Product name',
|
||||
'product_type': 'product_type',
|
||||
'product_name': 'P1 Meter',
|
||||
'product_type': 'HWE-P1',
|
||||
'serial': '**REDACTED**',
|
||||
}),
|
||||
})
|
||||
@ -586,8 +586,8 @@
|
||||
}),
|
||||
'entry': dict({
|
||||
'ip_address': '**REDACTED**',
|
||||
'product_name': 'Product name',
|
||||
'product_type': 'product_type',
|
||||
'product_name': 'P1 Meter',
|
||||
'product_type': 'HWE-P1',
|
||||
'serial': '**REDACTED**',
|
||||
}),
|
||||
})
|
||||
@ -675,8 +675,8 @@
|
||||
}),
|
||||
'entry': dict({
|
||||
'ip_address': '**REDACTED**',
|
||||
'product_name': 'Product name',
|
||||
'product_type': 'product_type',
|
||||
'product_name': 'P1 Meter',
|
||||
'product_type': 'HWE-P1',
|
||||
'serial': '**REDACTED**',
|
||||
}),
|
||||
})
|
||||
@ -764,8 +764,8 @@
|
||||
}),
|
||||
'entry': dict({
|
||||
'ip_address': '**REDACTED**',
|
||||
'product_name': 'Product name',
|
||||
'product_type': 'product_type',
|
||||
'product_name': 'P1 Meter',
|
||||
'product_type': 'HWE-P1',
|
||||
'serial': '**REDACTED**',
|
||||
}),
|
||||
})
|
||||
|
@ -51,7 +51,7 @@
|
||||
'previous_unique_id': None,
|
||||
'supported_features': 0,
|
||||
'translation_key': 'status_light_brightness',
|
||||
'unique_id': 'aabbccddeeff_status_light_brightness',
|
||||
'unique_id': 'HWE-P1_5c2fafabcdef_status_light_brightness',
|
||||
'unit_of_measurement': '%',
|
||||
})
|
||||
# ---
|
||||
@ -63,7 +63,7 @@
|
||||
'connections': set({
|
||||
tuple(
|
||||
'mac',
|
||||
'3c:39:e7:aa:bb:cc',
|
||||
'5c:2f:af:ab:cd:ef',
|
||||
),
|
||||
}),
|
||||
'disabled_by': None,
|
||||
@ -73,7 +73,7 @@
|
||||
'identifiers': set({
|
||||
tuple(
|
||||
'homewizard',
|
||||
'3c39e7aabbcc',
|
||||
'5c2fafabcdef',
|
||||
),
|
||||
}),
|
||||
'is_new': False,
|
||||
@ -143,7 +143,7 @@
|
||||
'previous_unique_id': None,
|
||||
'supported_features': 0,
|
||||
'translation_key': 'status_light_brightness',
|
||||
'unique_id': 'aabbccddeeff_status_light_brightness',
|
||||
'unique_id': 'HWE-P1_5c2fafabcdef_status_light_brightness',
|
||||
'unit_of_measurement': '%',
|
||||
})
|
||||
# ---
|
||||
@ -155,7 +155,7 @@
|
||||
'connections': set({
|
||||
tuple(
|
||||
'mac',
|
||||
'3c:39:e7:aa:bb:cc',
|
||||
'5c:2f:af:ab:cd:ef',
|
||||
),
|
||||
}),
|
||||
'disabled_by': None,
|
||||
@ -165,7 +165,7 @@
|
||||
'identifiers': set({
|
||||
tuple(
|
||||
'homewizard',
|
||||
'3c39e7aabbcc',
|
||||
'5c2fafabcdef',
|
||||
),
|
||||
}),
|
||||
'is_new': False,
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -41,7 +41,7 @@
|
||||
'previous_unique_id': None,
|
||||
'supported_features': 0,
|
||||
'translation_key': 'cloud_connection',
|
||||
'unique_id': 'aabbccddeeff_cloud_connection',
|
||||
'unique_id': 'HWE-P1_5c2fafabcdef_cloud_connection',
|
||||
'unit_of_measurement': None,
|
||||
})
|
||||
# ---
|
||||
@ -53,7 +53,7 @@
|
||||
'connections': set({
|
||||
tuple(
|
||||
'mac',
|
||||
'3c:39:e7:aa:bb:cc',
|
||||
'5c:2f:af:ab:cd:ef',
|
||||
),
|
||||
}),
|
||||
'disabled_by': None,
|
||||
@ -63,7 +63,7 @@
|
||||
'identifiers': set({
|
||||
tuple(
|
||||
'homewizard',
|
||||
'3c39e7aabbcc',
|
||||
'5c2fafabcdef',
|
||||
),
|
||||
}),
|
||||
'is_new': False,
|
||||
@ -123,7 +123,7 @@
|
||||
'previous_unique_id': None,
|
||||
'supported_features': 0,
|
||||
'translation_key': 'cloud_connection',
|
||||
'unique_id': 'aabbccddeeff_cloud_connection',
|
||||
'unique_id': 'HWE-P1_5c2fafabcdef_cloud_connection',
|
||||
'unit_of_measurement': None,
|
||||
})
|
||||
# ---
|
||||
@ -135,7 +135,7 @@
|
||||
'connections': set({
|
||||
tuple(
|
||||
'mac',
|
||||
'3c:39:e7:aa:bb:cc',
|
||||
'5c:2f:af:ab:cd:ef',
|
||||
),
|
||||
}),
|
||||
'disabled_by': None,
|
||||
@ -145,7 +145,7 @@
|
||||
'identifiers': set({
|
||||
tuple(
|
||||
'homewizard',
|
||||
'3c39e7aabbcc',
|
||||
'5c2fafabcdef',
|
||||
),
|
||||
}),
|
||||
'is_new': False,
|
||||
@ -206,7 +206,7 @@
|
||||
'previous_unique_id': None,
|
||||
'supported_features': 0,
|
||||
'translation_key': None,
|
||||
'unique_id': 'aabbccddeeff_power_on',
|
||||
'unique_id': 'HWE-P1_5c2fafabcdef_power_on',
|
||||
'unit_of_measurement': None,
|
||||
})
|
||||
# ---
|
||||
@ -218,7 +218,7 @@
|
||||
'connections': set({
|
||||
tuple(
|
||||
'mac',
|
||||
'3c:39:e7:aa:bb:cc',
|
||||
'5c:2f:af:ab:cd:ef',
|
||||
),
|
||||
}),
|
||||
'disabled_by': None,
|
||||
@ -228,7 +228,7 @@
|
||||
'identifiers': set({
|
||||
tuple(
|
||||
'homewizard',
|
||||
'3c39e7aabbcc',
|
||||
'5c2fafabcdef',
|
||||
),
|
||||
}),
|
||||
'is_new': False,
|
||||
@ -288,7 +288,7 @@
|
||||
'previous_unique_id': None,
|
||||
'supported_features': 0,
|
||||
'translation_key': 'cloud_connection',
|
||||
'unique_id': 'aabbccddeeff_cloud_connection',
|
||||
'unique_id': 'HWE-P1_5c2fafabcdef_cloud_connection',
|
||||
'unit_of_measurement': None,
|
||||
})
|
||||
# ---
|
||||
@ -300,7 +300,7 @@
|
||||
'connections': set({
|
||||
tuple(
|
||||
'mac',
|
||||
'3c:39:e7:aa:bb:cc',
|
||||
'5c:2f:af:ab:cd:ef',
|
||||
),
|
||||
}),
|
||||
'disabled_by': None,
|
||||
@ -310,7 +310,7 @@
|
||||
'identifiers': set({
|
||||
tuple(
|
||||
'homewizard',
|
||||
'3c39e7aabbcc',
|
||||
'5c2fafabcdef',
|
||||
),
|
||||
}),
|
||||
'is_new': False,
|
||||
@ -370,7 +370,7 @@
|
||||
'previous_unique_id': None,
|
||||
'supported_features': 0,
|
||||
'translation_key': 'switch_lock',
|
||||
'unique_id': 'aabbccddeeff_switch_lock',
|
||||
'unique_id': 'HWE-P1_5c2fafabcdef_switch_lock',
|
||||
'unit_of_measurement': None,
|
||||
})
|
||||
# ---
|
||||
@ -382,7 +382,7 @@
|
||||
'connections': set({
|
||||
tuple(
|
||||
'mac',
|
||||
'3c:39:e7:aa:bb:cc',
|
||||
'5c:2f:af:ab:cd:ef',
|
||||
),
|
||||
}),
|
||||
'disabled_by': None,
|
||||
@ -392,7 +392,7 @@
|
||||
'identifiers': set({
|
||||
tuple(
|
||||
'homewizard',
|
||||
'3c39e7aabbcc',
|
||||
'5c2fafabcdef',
|
||||
),
|
||||
}),
|
||||
'is_new': False,
|
||||
@ -453,7 +453,7 @@
|
||||
'previous_unique_id': None,
|
||||
'supported_features': 0,
|
||||
'translation_key': None,
|
||||
'unique_id': 'aabbccddeeff_power_on',
|
||||
'unique_id': 'HWE-P1_5c2fafabcdef_power_on',
|
||||
'unit_of_measurement': None,
|
||||
})
|
||||
# ---
|
||||
@ -465,7 +465,7 @@
|
||||
'connections': set({
|
||||
tuple(
|
||||
'mac',
|
||||
'3c:39:e7:aa:bb:cc',
|
||||
'5c:2f:af:ab:cd:ef',
|
||||
),
|
||||
}),
|
||||
'disabled_by': None,
|
||||
@ -475,7 +475,7 @@
|
||||
'identifiers': set({
|
||||
tuple(
|
||||
'homewizard',
|
||||
'3c39e7aabbcc',
|
||||
'5c2fafabcdef',
|
||||
),
|
||||
}),
|
||||
'is_new': False,
|
||||
@ -535,7 +535,7 @@
|
||||
'previous_unique_id': None,
|
||||
'supported_features': 0,
|
||||
'translation_key': 'cloud_connection',
|
||||
'unique_id': 'aabbccddeeff_cloud_connection',
|
||||
'unique_id': 'HWE-P1_5c2fafabcdef_cloud_connection',
|
||||
'unit_of_measurement': None,
|
||||
})
|
||||
# ---
|
||||
@ -547,7 +547,7 @@
|
||||
'connections': set({
|
||||
tuple(
|
||||
'mac',
|
||||
'3c:39:e7:aa:bb:cc',
|
||||
'5c:2f:af:ab:cd:ef',
|
||||
),
|
||||
}),
|
||||
'disabled_by': None,
|
||||
@ -557,7 +557,7 @@
|
||||
'identifiers': set({
|
||||
tuple(
|
||||
'homewizard',
|
||||
'3c39e7aabbcc',
|
||||
'5c2fafabcdef',
|
||||
),
|
||||
}),
|
||||
'is_new': False,
|
||||
@ -617,7 +617,7 @@
|
||||
'previous_unique_id': None,
|
||||
'supported_features': 0,
|
||||
'translation_key': 'switch_lock',
|
||||
'unique_id': 'aabbccddeeff_switch_lock',
|
||||
'unique_id': 'HWE-P1_5c2fafabcdef_switch_lock',
|
||||
'unit_of_measurement': None,
|
||||
})
|
||||
# ---
|
||||
@ -629,7 +629,7 @@
|
||||
'connections': set({
|
||||
tuple(
|
||||
'mac',
|
||||
'3c:39:e7:aa:bb:cc',
|
||||
'5c:2f:af:ab:cd:ef',
|
||||
),
|
||||
}),
|
||||
'disabled_by': None,
|
||||
@ -639,7 +639,7 @@
|
||||
'identifiers': set({
|
||||
tuple(
|
||||
'homewizard',
|
||||
'3c39e7aabbcc',
|
||||
'5c2fafabcdef',
|
||||
),
|
||||
}),
|
||||
'is_new': False,
|
||||
@ -699,7 +699,7 @@
|
||||
'previous_unique_id': None,
|
||||
'supported_features': 0,
|
||||
'translation_key': 'cloud_connection',
|
||||
'unique_id': 'aabbccddeeff_cloud_connection',
|
||||
'unique_id': 'HWE-P1_5c2fafabcdef_cloud_connection',
|
||||
'unit_of_measurement': None,
|
||||
})
|
||||
# ---
|
||||
@ -711,7 +711,7 @@
|
||||
'connections': set({
|
||||
tuple(
|
||||
'mac',
|
||||
'3c:39:e7:aa:bb:cc',
|
||||
'5c:2f:af:ab:cd:ef',
|
||||
),
|
||||
}),
|
||||
'disabled_by': None,
|
||||
@ -721,7 +721,7 @@
|
||||
'identifiers': set({
|
||||
tuple(
|
||||
'homewizard',
|
||||
'3c39e7aabbcc',
|
||||
'5c2fafabcdef',
|
||||
),
|
||||
}),
|
||||
'is_new': False,
|
||||
@ -781,7 +781,7 @@
|
||||
'previous_unique_id': None,
|
||||
'supported_features': 0,
|
||||
'translation_key': 'cloud_connection',
|
||||
'unique_id': 'aabbccddeeff_cloud_connection',
|
||||
'unique_id': 'HWE-P1_5c2fafabcdef_cloud_connection',
|
||||
'unit_of_measurement': None,
|
||||
})
|
||||
# ---
|
||||
@ -793,7 +793,7 @@
|
||||
'connections': set({
|
||||
tuple(
|
||||
'mac',
|
||||
'3c:39:e7:aa:bb:cc',
|
||||
'5c:2f:af:ab:cd:ef',
|
||||
),
|
||||
}),
|
||||
'disabled_by': None,
|
||||
@ -803,7 +803,7 @@
|
||||
'identifiers': set({
|
||||
tuple(
|
||||
'homewizard',
|
||||
'3c39e7aabbcc',
|
||||
'5c2fafabcdef',
|
||||
),
|
||||
}),
|
||||
'is_new': False,
|
||||
@ -863,7 +863,7 @@
|
||||
'previous_unique_id': None,
|
||||
'supported_features': 0,
|
||||
'translation_key': 'cloud_connection',
|
||||
'unique_id': 'aabbccddeeff_cloud_connection',
|
||||
'unique_id': 'HWE-P1_5c2fafabcdef_cloud_connection',
|
||||
'unit_of_measurement': None,
|
||||
})
|
||||
# ---
|
||||
@ -875,7 +875,7 @@
|
||||
'connections': set({
|
||||
tuple(
|
||||
'mac',
|
||||
'3c:39:e7:aa:bb:cc',
|
||||
'5c:2f:af:ab:cd:ef',
|
||||
),
|
||||
}),
|
||||
'disabled_by': None,
|
||||
@ -885,7 +885,7 @@
|
||||
'identifiers': set({
|
||||
tuple(
|
||||
'homewizard',
|
||||
'3c39e7aabbcc',
|
||||
'5c2fafabcdef',
|
||||
),
|
||||
}),
|
||||
'is_new': False,
|
||||
|
@ -66,7 +66,7 @@ async def test_discovery_flow_works(
|
||||
"path": "/api/v1",
|
||||
"product_name": "Energy Socket",
|
||||
"product_type": "HWE-SKT",
|
||||
"serial": "aabbccddeeff",
|
||||
"serial": "5c2fafabcdef",
|
||||
},
|
||||
),
|
||||
)
|
||||
@ -112,7 +112,7 @@ async def test_discovery_flow_during_onboarding(
|
||||
"path": "/api/v1",
|
||||
"product_name": "P1 meter",
|
||||
"product_type": "HWE-P1",
|
||||
"serial": "aabbccddeeff",
|
||||
"serial": "5c2fafabcdef",
|
||||
},
|
||||
),
|
||||
)
|
||||
@ -149,7 +149,7 @@ async def test_discovery_flow_during_onboarding_disabled_api(
|
||||
"path": "/api/v1",
|
||||
"product_name": "P1 meter",
|
||||
"product_type": "HWE-P1",
|
||||
"serial": "aabbccddeeff",
|
||||
"serial": "5c2fafabcdef",
|
||||
},
|
||||
),
|
||||
)
|
||||
@ -193,7 +193,7 @@ async def test_discovery_disabled_api(
|
||||
"path": "/api/v1",
|
||||
"product_name": "P1 meter",
|
||||
"product_type": "HWE-P1",
|
||||
"serial": "aabbccddeeff",
|
||||
"serial": "5c2fafabcdef",
|
||||
},
|
||||
),
|
||||
)
|
||||
@ -228,7 +228,7 @@ async def test_discovery_missing_data_in_service_info(hass: HomeAssistant) -> No
|
||||
"path": "/api/v1",
|
||||
"product_name": "P1 meter",
|
||||
"product_type": "HWE-P1",
|
||||
"serial": "aabbccddeeff",
|
||||
"serial": "5c2fafabcdef",
|
||||
},
|
||||
),
|
||||
)
|
||||
@ -254,7 +254,7 @@ async def test_discovery_invalid_api(hass: HomeAssistant) -> None:
|
||||
"path": "/api/not_v1",
|
||||
"product_name": "P1 meter",
|
||||
"product_type": "HWE-P1",
|
||||
"serial": "aabbccddeeff",
|
||||
"serial": "5c2fafabcdef",
|
||||
},
|
||||
),
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user