You've already forked homehub
Release 1.3.0
This commit is contained in:
34
packages/homehub_tradfri/tests/__fixtures__/tradfri.js
Normal file
34
packages/homehub_tradfri/tests/__fixtures__/tradfri.js
Normal file
@@ -0,0 +1,34 @@
|
||||
export const TradfriDataFactory = () => {
|
||||
return {
|
||||
lights: [
|
||||
{
|
||||
'id': 'light1',
|
||||
'name': 'Light 1',
|
||||
'state': true,
|
||||
'reachable': false,
|
||||
'dimmer': 128,
|
||||
},
|
||||
{
|
||||
'id': 'light2',
|
||||
'name': 'Light 2',
|
||||
'state': true,
|
||||
'reachable': false,
|
||||
'dimmer': 128,
|
||||
},
|
||||
{
|
||||
'id': 'light3',
|
||||
'name': 'Light 3',
|
||||
'state': true,
|
||||
'reachable': false,
|
||||
'dimmer': 128,
|
||||
},
|
||||
],
|
||||
groups: [
|
||||
{
|
||||
'id': 'group1',
|
||||
'name': 'Group 1',
|
||||
'member_ids': ['light1', 'light2'],
|
||||
},
|
||||
],
|
||||
};
|
||||
};
|
||||
Reference in New Issue
Block a user