This pull request includes several updates to prepare the plugin for integration with Homebridge v2:
Updated .github/workflows/publish_release.yml:
Added npm run prebuild step to ensure proper build process for v2 compatibility
Modified .gitignore:
Removed .github/workflows/ from ignored files to ensure workflow files are properly tracked
Updated default config values:
Added name: 'EufySecurity' to default configuration in both:
src/configui/app/util/default-config-values.ts
src/plugin/config.ts
This change ensures compliance with Homebridge v2 config structure requirements
Removed deprecated event listeners:
Removed APIEvent.SHUTDOWN listener in BaseAccessory
Removed APIEvent.SHUTDOWN listener in StreamingDelegate
These changes align with Homebridge v2's updated lifecycle management
Updated plugin registration in src/plugin/index.ts:
Changed from api.registerPlatform(PLATFORM_NAME, EufySecurityPlatform) to api.registerPlatform(PLUGIN_NAME, PLATFORM_NAME, EufySecurityPlatform)
This update ensures proper plugin registration format for Homebridge v2
Refactored platform.ts:
Updated config property type and initialization to match Homebridge v2 expectations
These changes collectively prepare the plugin for seamless integration with Homebridge v2, ensuring compatibility with the new version's architecture and requirements. The updates address configuration structure, event handling, and plugin registration to align with Homebridge v2 standards.
This pull request includes several updates to prepare the plugin for integration with Homebridge v2:
Updated
.github/workflows/publish_release.yml
:npm run prebuild
step to ensure proper build process for v2 compatibilityModified
.gitignore
:.github/workflows/
from ignored files to ensure workflow files are properly trackedUpdated default config values:
name: 'EufySecurity'
to default configuration in both:src/configui/app/util/default-config-values.ts
src/plugin/config.ts
Removed deprecated event listeners:
APIEvent.SHUTDOWN
listener inBaseAccessory
APIEvent.SHUTDOWN
listener inStreamingDelegate
Updated plugin registration in
src/plugin/index.ts
:api.registerPlatform(PLATFORM_NAME, EufySecurityPlatform)
toapi.registerPlatform(PLUGIN_NAME, PLATFORM_NAME, EufySecurityPlatform)
Refactored
platform.ts
:config
property type and initialization to match Homebridge v2 expectationsThese changes collectively prepare the plugin for seamless integration with Homebridge v2, ensuring compatibility with the new version's architecture and requirements. The updates address configuration structure, event handling, and plugin registration to align with Homebridge v2 standards.