-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Homebridge v2.0.0 beta 21 - TypeError: Class constructor Characteristic #12
Comments
Thanks for the report, let me know if you have a PR that fixes it |
Dont have a PR at the Moment :-/ This are the change with HB 2.0: Common long-deprecated code patterns that may need updating: |
I'm still using HomeBridge 1.6.1, so haven't tested the plugin with anything later than that |
Homebride v2.0.0 beta 21
Plugin v0.2.2
Runs without error on Homebridge v1.8.4
Error:
[9/18/2024, 3:17:06 PM] [Sonne] Child bridge starting (pid 550)...
[9/18/2024, 3:17:06 PM] Registering platform 'homebridge-seasons.Seasons'
[9/18/2024, 3:17:06 PM] [Sonne] Child bridge started successfully (plugin v0.2.2).
[9/18/2024, 3:17:06 PM] Loaded 0 cached accessories from cachedAccessories.0E59D532C9DE.
/homebridge/node_modules/homebridge-sun-position/index.js:17
Characteristic.call(this, 'Altitude', ALTITUDE_UUID);
^
TypeError: Class constructor Characteristic cannot be invoked without 'new'
at new AltitudeCharacteristic (/homebridge/node_modules/homebridge-sun-position/index.js:17:18)
at LightSensor.addCharacteristic (/homebridge/node_modules/homebridge/node_modules/hap-nodejs/src/lib/Service.ts:518:57)
at SunPositionAccessory.getServices (/homebridge/node_modules/homebridge-sun-position/index.js:72:18)
at BridgeService.createHAPAccessory (file:///homebridge/node_modules/homebridge/src/bridgeService.ts:439:41)
at ChildBridgeFork.startBridge (file:///homebridge/node_modules/homebridge/src/childBridgeFork.ts:179:46)
[9/18/2024, 3:17:06 PM] [Sonne] Child bridge ended (code 1, signal null). The child bridge ended unexpectedly, which is normally due to the plugin not catching its errors properly. Please report this to the plugin developer by clicking on the 'Report An Issue' option in the plugin menu dropdown from the Homebridge UI. If there are related logs shown above, please include them in your report.
[9/18/2024, 3:17:06 PM] [Sonne] Child bridge will automatically restart in 40 seconds (restart attempt 4 of 4).
The text was updated successfully, but these errors were encountered: