naofireblade / homebridge-weather-plus

A comprehensive weather plugin for homebridge.
MIT License
314 stars 63 forks source link

Support for Homebridge 2.0 #301

Open rionshin opened 1 month ago

rionshin commented 1 month ago

Soon Homebridge 2.0 will be released which will have some break changes to plugins. could you please check is this plugin is impacted and make it working with 2.0

https://github.com/homebridge/homebridge/wiki/Updating-To-Homebridge-v2.0

jonad2002 commented 1 month ago

Testing with 2.0 B11 results:

[8/10/2024, 1:30:09 PM][homebridge-weather-plus]Adding station with weather service OpenWeatherMap named 'Home' /var/lib/homebridge/node_modules/homebridge-weather-plus/util/characteristics.js:173 Characteristic.call(this, 'Air Pressure', CustomUUID.AirPressure); ^ TypeError: Class constructor Characteristic cannot be invoked without 'new' at new CustomCharacteristic.AirPressure (/var/lib/homebridge/node_modules/homebridge-weather-plus/util/characteristics.js:173:18) at TemperatureSensor.addCharacteristic (/var/lib/homebridge/node_modules/homebridge/node_modules/hap-nodejs/src/lib/Service.ts:518:57) at /var/lib/homebridge/node_modules/homebridge-weather-plus/accessories/currentConditions.js:140:35 at Array.forEach () at new CurrentConditionsWeatherAccessory (/var/lib/homebridge/node_modules/homebridge-weather-plus/accessories/currentConditions.js:68:61) at /var/lib/homebridge/node_modules/homebridge-weather-plus/index.js:94:30 at Array.forEach () at new WeatherPlusPlatform (/var/lib/homebridge/node_modules/homebridge-weather-plus/index.js:65:22) at ChildBridgeFork.startBridge (/var/lib/homebridge/node_modules/homebridge/src/childBridgeFork.ts:155:42)