@@ -353,36 +353,38 @@ async def handle_get_diagnostics(call):
353
353
354
354
# Register custom services with home assistant
355
355
self .hass .services .async_register (
356
- DOMAIN ,
356
+ self . central . cpid ,
357
357
csvcs .service_configure .value ,
358
358
handle_configure ,
359
359
CONF_SERVICE_DATA_SCHEMA ,
360
360
)
361
361
self .hass .services .async_register (
362
- DOMAIN ,
362
+ self . central . cpid ,
363
363
csvcs .service_get_configuration .value ,
364
364
handle_get_configuration ,
365
365
GCONF_SERVICE_DATA_SCHEMA ,
366
366
)
367
367
if om .feature_profile_smart .value in self ._features_supported :
368
368
self .hass .services .async_register (
369
- DOMAIN , csvcs .service_clear_profile .value , handle_clear_profile
369
+ self .central .cpid ,
370
+ csvcs .service_clear_profile .value ,
371
+ handle_clear_profile ,
370
372
)
371
373
self .hass .services .async_register (
372
- DOMAIN ,
374
+ self . central . cpid ,
373
375
csvcs .service_set_charge_rate .value ,
374
376
handle_set_charge_rate ,
375
377
SCR_SERVICE_DATA_SCHEMA ,
376
378
)
377
379
if om .feature_profile_firmware .value in self ._features_supported :
378
380
self .hass .services .async_register (
379
- DOMAIN ,
381
+ self . central . cpid ,
380
382
csvcs .service_update_firmware .value ,
381
383
handle_update_firmware ,
382
384
UFW_SERVICE_DATA_SCHEMA ,
383
385
)
384
386
self .hass .services .async_register (
385
- DOMAIN ,
387
+ self . central . cpid ,
386
388
csvcs .service_get_diagnostics .value ,
387
389
handle_get_diagnostics ,
388
390
GDIAG_SERVICE_DATA_SCHEMA ,
0 commit comments