@@ -255,7 +255,10 @@ class TradfriClient extends events_1.EventEmitter {
255255 const result = parsePayload ( response ) ;
256256 logger_1 . log ( `observeDevice > ` + JSON . stringify ( result ) , "debug" ) ;
257257 // parse device info
258- const accessory = new accessory_1 . Accessory ( this . ipsoOptions ) . parse ( result ) . createProxy ( ) ;
258+ const accessory = new accessory_1 . Accessory ( this . ipsoOptions )
259+ . parse ( result )
260+ . fixBuggedProperties ( )
261+ . createProxy ( ) ;
259262 // remember the device object, so we can later use it as a reference for updates
260263 // store a clone, so we don't have to care what the calling library does
261264 this . devices [ instanceId ] = accessory . clone ( ) ;
@@ -370,7 +373,10 @@ class TradfriClient extends events_1.EventEmitter {
370373 }
371374 const result = parsePayload ( response ) ;
372375 // parse group info
373- const group = ( new group_1 . Group ( this . ipsoOptions ) ) . parse ( result ) . createProxy ( ) ;
376+ const group = new group_1 . Group ( this . ipsoOptions )
377+ . parse ( result )
378+ . fixBuggedProperties ( )
379+ . createProxy ( ) ;
374380 // remember the group object, so we can later use it as a reference for updates
375381 let groupInfo ;
376382 if ( ! ( instanceId in this . groups ) ) {
@@ -450,7 +456,10 @@ class TradfriClient extends events_1.EventEmitter {
450456 }
451457 const result = parsePayload ( response ) ;
452458 // parse scene info
453- const scene = ( new scene_1 . Scene ( this . ipsoOptions ) ) . parse ( result ) . createProxy ( ) ;
459+ const scene = new scene_1 . Scene ( this . ipsoOptions )
460+ . parse ( result )
461+ . fixBuggedProperties ( )
462+ . createProxy ( ) ;
454463 // remember the scene object, so we can later use it as a reference for updates
455464 // store a clone, so we don't have to care what the calling library does
456465 this . groups [ groupId ] . scenes [ instanceId ] = scene . clone ( ) ;
0 commit comments