Skip to content

Commit

Permalink
Minor cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
kylehowells committed Jun 3, 2015
1 parent 4f50055 commit 4a5a582
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions HomeKitBridge/LIFX/HKBLightAccessoryLIFX.m
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,10 @@ -(void)characteristicDidUpdateValue:(HAKCharacteristic*)characteristic

#pragma mark - LFXLightObserver

-(void)light:(LFXLight *)light didChangeLabel:(NSString *)label{
self.accessory.name = light.label;
}
// I choose not to bridge label=name as I have my LIFX bulbs and HomeKit bulbs named very differently
//-(void)light:(LFXLight *)light didChangeLabel:(NSString *)label{
// self.accessory.name = light.label;
//}
-(void)light:(LFXLight *)light didChangeColor:(LFXHSBKColor *)color{
[self updateHKColorValues];
}
Expand Down Expand Up @@ -127,9 +128,8 @@ -(void)updateHomeKitKelvin:(NSUInteger)kelvin{

#pragma mark - Update LIFX API to HomeKit changes

-(void)updateExternalPowerState:(BOOL)_powerState{
LFXPowerState powerState = _powerState ? LFXPowerStateOn : LFXPowerStateOff;
[self.lifxBulb setPowerState:powerState];
-(void)updateExternalPowerState:(BOOL)powerState{
[self.lifxBulb setPowerState:powerState ? LFXPowerStateOn : LFXPowerStateOff];
}

-(void)updateExternalBrightness:(NSInteger)brightness{
Expand Down

0 comments on commit 4a5a582

Please sign in to comment.