mirror of
https://github.com/home-assistant/core.git
synced 2025-08-05 21:55:10 +02:00
Fix location_id datatype in totalconnect tests (#125298)
Adjust location_id type in totalconnect tests
This commit is contained in:
@@ -11,7 +11,7 @@ from homeassistant.setup import async_setup_component
|
||||
|
||||
from tests.common import MockConfigEntry
|
||||
|
||||
LOCATION_ID = "123456"
|
||||
LOCATION_ID = 123456
|
||||
|
||||
DEVICE_INFO_BASIC_1 = {
|
||||
"DeviceID": "987654",
|
||||
|
@@ -41,7 +41,7 @@
|
||||
'code_format': None,
|
||||
'cover_tampered': False,
|
||||
'friendly_name': 'test',
|
||||
'location_id': '123456',
|
||||
'location_id': 123456,
|
||||
'location_name': 'test',
|
||||
'low_battery': False,
|
||||
'partition': 1,
|
||||
@@ -99,7 +99,7 @@
|
||||
'code_format': None,
|
||||
'cover_tampered': False,
|
||||
'friendly_name': 'test Partition 2',
|
||||
'location_id': '123456',
|
||||
'location_id': 123456,
|
||||
'location_name': 'test partition 2',
|
||||
'low_battery': False,
|
||||
'partition': 2,
|
||||
|
@@ -37,7 +37,7 @@
|
||||
'attributes': ReadOnlyDict({
|
||||
'device_class': 'smoke',
|
||||
'friendly_name': 'Fire',
|
||||
'location_id': '123456',
|
||||
'location_id': 123456,
|
||||
'partition': '1',
|
||||
'zone_id': '2',
|
||||
}),
|
||||
@@ -87,7 +87,7 @@
|
||||
'attributes': ReadOnlyDict({
|
||||
'device_class': 'battery',
|
||||
'friendly_name': 'Fire Battery',
|
||||
'location_id': '123456',
|
||||
'location_id': 123456,
|
||||
'partition': '1',
|
||||
'zone_id': '2',
|
||||
}),
|
||||
@@ -137,7 +137,7 @@
|
||||
'attributes': ReadOnlyDict({
|
||||
'device_class': 'tamper',
|
||||
'friendly_name': 'Fire Tamper',
|
||||
'location_id': '123456',
|
||||
'location_id': 123456,
|
||||
'partition': '1',
|
||||
'zone_id': '2',
|
||||
}),
|
||||
@@ -187,7 +187,7 @@
|
||||
'attributes': ReadOnlyDict({
|
||||
'device_class': 'gas',
|
||||
'friendly_name': 'Gas',
|
||||
'location_id': '123456',
|
||||
'location_id': 123456,
|
||||
'partition': '1',
|
||||
'zone_id': '3',
|
||||
}),
|
||||
@@ -237,7 +237,7 @@
|
||||
'attributes': ReadOnlyDict({
|
||||
'device_class': 'battery',
|
||||
'friendly_name': 'Gas Battery',
|
||||
'location_id': '123456',
|
||||
'location_id': 123456,
|
||||
'partition': '1',
|
||||
'zone_id': '3',
|
||||
}),
|
||||
@@ -287,7 +287,7 @@
|
||||
'attributes': ReadOnlyDict({
|
||||
'device_class': 'tamper',
|
||||
'friendly_name': 'Gas Tamper',
|
||||
'location_id': '123456',
|
||||
'location_id': 123456,
|
||||
'partition': '1',
|
||||
'zone_id': '3',
|
||||
}),
|
||||
@@ -337,7 +337,7 @@
|
||||
'attributes': ReadOnlyDict({
|
||||
'device_class': 'safety',
|
||||
'friendly_name': 'Medical',
|
||||
'location_id': '123456',
|
||||
'location_id': 123456,
|
||||
'partition': '1',
|
||||
'zone_id': '5',
|
||||
}),
|
||||
@@ -387,7 +387,7 @@
|
||||
'attributes': ReadOnlyDict({
|
||||
'device_class': 'motion',
|
||||
'friendly_name': 'Motion',
|
||||
'location_id': '123456',
|
||||
'location_id': 123456,
|
||||
'partition': '1',
|
||||
'zone_id': '4',
|
||||
}),
|
||||
@@ -437,7 +437,7 @@
|
||||
'attributes': ReadOnlyDict({
|
||||
'device_class': 'battery',
|
||||
'friendly_name': 'Motion Battery',
|
||||
'location_id': '123456',
|
||||
'location_id': 123456,
|
||||
'partition': '1',
|
||||
'zone_id': '4',
|
||||
}),
|
||||
@@ -487,7 +487,7 @@
|
||||
'attributes': ReadOnlyDict({
|
||||
'device_class': 'tamper',
|
||||
'friendly_name': 'Motion Tamper',
|
||||
'location_id': '123456',
|
||||
'location_id': 123456,
|
||||
'partition': '1',
|
||||
'zone_id': '4',
|
||||
}),
|
||||
@@ -537,7 +537,7 @@
|
||||
'attributes': ReadOnlyDict({
|
||||
'device_class': 'door',
|
||||
'friendly_name': 'Security',
|
||||
'location_id': '123456',
|
||||
'location_id': 123456,
|
||||
'partition': '1',
|
||||
'zone_id': '1',
|
||||
}),
|
||||
@@ -587,7 +587,7 @@
|
||||
'attributes': ReadOnlyDict({
|
||||
'device_class': 'battery',
|
||||
'friendly_name': 'Security Battery',
|
||||
'location_id': '123456',
|
||||
'location_id': 123456,
|
||||
'partition': '1',
|
||||
'zone_id': '1',
|
||||
}),
|
||||
@@ -637,7 +637,7 @@
|
||||
'attributes': ReadOnlyDict({
|
||||
'device_class': 'tamper',
|
||||
'friendly_name': 'Security Tamper',
|
||||
'location_id': '123456',
|
||||
'location_id': 123456,
|
||||
'partition': '1',
|
||||
'zone_id': '1',
|
||||
}),
|
||||
@@ -687,7 +687,7 @@
|
||||
'attributes': ReadOnlyDict({
|
||||
'device_class': 'problem',
|
||||
'friendly_name': 'Temperature',
|
||||
'location_id': '123456',
|
||||
'location_id': 123456,
|
||||
'partition': '1',
|
||||
'zone_id': 7,
|
||||
}),
|
||||
@@ -737,7 +737,7 @@
|
||||
'attributes': ReadOnlyDict({
|
||||
'device_class': 'battery',
|
||||
'friendly_name': 'Temperature Battery',
|
||||
'location_id': '123456',
|
||||
'location_id': 123456,
|
||||
'partition': '1',
|
||||
'zone_id': 7,
|
||||
}),
|
||||
@@ -787,7 +787,7 @@
|
||||
'attributes': ReadOnlyDict({
|
||||
'device_class': 'tamper',
|
||||
'friendly_name': 'Temperature Tamper',
|
||||
'location_id': '123456',
|
||||
'location_id': 123456,
|
||||
'partition': '1',
|
||||
'zone_id': 7,
|
||||
}),
|
||||
@@ -837,7 +837,7 @@
|
||||
'attributes': ReadOnlyDict({
|
||||
'device_class': 'battery',
|
||||
'friendly_name': 'test Battery',
|
||||
'location_id': '123456',
|
||||
'location_id': 123456,
|
||||
}),
|
||||
'context': <ANY>,
|
||||
'entity_id': 'binary_sensor.test_battery',
|
||||
@@ -885,7 +885,7 @@
|
||||
'attributes': ReadOnlyDict({
|
||||
'device_class': 'carbon_monoxide',
|
||||
'friendly_name': 'test Carbon monoxide',
|
||||
'location_id': '123456',
|
||||
'location_id': 123456,
|
||||
}),
|
||||
'context': <ANY>,
|
||||
'entity_id': 'binary_sensor.test_carbon_monoxide',
|
||||
@@ -932,7 +932,7 @@
|
||||
StateSnapshot({
|
||||
'attributes': ReadOnlyDict({
|
||||
'friendly_name': 'test Police emergency',
|
||||
'location_id': '123456',
|
||||
'location_id': 123456,
|
||||
}),
|
||||
'context': <ANY>,
|
||||
'entity_id': 'binary_sensor.test_police_emergency',
|
||||
@@ -980,7 +980,7 @@
|
||||
'attributes': ReadOnlyDict({
|
||||
'device_class': 'power',
|
||||
'friendly_name': 'test Power',
|
||||
'location_id': '123456',
|
||||
'location_id': 123456,
|
||||
}),
|
||||
'context': <ANY>,
|
||||
'entity_id': 'binary_sensor.test_power',
|
||||
@@ -1028,7 +1028,7 @@
|
||||
'attributes': ReadOnlyDict({
|
||||
'device_class': 'smoke',
|
||||
'friendly_name': 'test Smoke',
|
||||
'location_id': '123456',
|
||||
'location_id': 123456,
|
||||
}),
|
||||
'context': <ANY>,
|
||||
'entity_id': 'binary_sensor.test_smoke',
|
||||
@@ -1076,7 +1076,7 @@
|
||||
'attributes': ReadOnlyDict({
|
||||
'device_class': 'tamper',
|
||||
'friendly_name': 'test Tamper',
|
||||
'location_id': '123456',
|
||||
'location_id': 123456,
|
||||
}),
|
||||
'context': <ANY>,
|
||||
'entity_id': 'binary_sensor.test_tamper',
|
||||
@@ -1124,7 +1124,7 @@
|
||||
'attributes': ReadOnlyDict({
|
||||
'device_class': 'door',
|
||||
'friendly_name': 'Unknown',
|
||||
'location_id': '123456',
|
||||
'location_id': 123456,
|
||||
'partition': '1',
|
||||
'zone_id': '6',
|
||||
}),
|
||||
@@ -1174,7 +1174,7 @@
|
||||
'attributes': ReadOnlyDict({
|
||||
'device_class': 'battery',
|
||||
'friendly_name': 'Unknown Battery',
|
||||
'location_id': '123456',
|
||||
'location_id': 123456,
|
||||
'partition': '1',
|
||||
'zone_id': '6',
|
||||
}),
|
||||
@@ -1224,7 +1224,7 @@
|
||||
'attributes': ReadOnlyDict({
|
||||
'device_class': 'tamper',
|
||||
'friendly_name': 'Unknown Tamper',
|
||||
'location_id': '123456',
|
||||
'location_id': 123456,
|
||||
'partition': '1',
|
||||
'zone_id': '6',
|
||||
}),
|
||||
|
Reference in New Issue
Block a user