Skip to content

Commit

Permalink
feat: new device types
Browse files Browse the repository at this point in the history
  • Loading branch information
philipparndt committed May 10, 2024
1 parent a63e323 commit 59601ef
Showing 1 changed file with 17 additions and 3 deletions.
20 changes: 17 additions & 3 deletions app/lib/state/state-manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,23 @@ export const initStateManagerFromHue = async () => {
state.addTypedResources(rooms.data)
}

for (const typeName of ["light", "light_level", "bridge_home",
"grouped_light", "bridge", "device_power", "zigbee_connectivity", "zgp_connectivity",
"temperature", "motion", "button"]) {
for (const typeName of [
"bridge",
"bridge_home",
"button",
"device_power",
"device_power",
"device_software_update",
"entertainment",
"grouped_light",
"light",
"light_level",
"motion",
"relative_rotary",
"temperature",
"zgp_connectivity",
"zigbee_connectivity",

Check failure on line 102 in app/lib/state/state-manager.ts

View workflow job for this annotation

GitHub Actions / build

Unexpected trailing comma
]) {
const resources = await loadTyped(typeName)
if (resources) {
state.addTypedResources(resources.data)
Expand Down

0 comments on commit 59601ef

Please sign in to comment.