It appears that the LIGHT_ON and LIGHT_OFF have been changed to static memebers. This is the correct place for them, however they are still being accessed as instance memebers i.e. self.LIGHT_ON in the Relay class. While this will work it may confuse a reader, they should be accessed like Relay.LIGHT_ON and Relay.LIGHT_OFF
It appears that the
LIGHT_ON
andLIGHT_OFF
have been changed to static memebers. This is the correct place for them, however they are still being accessed as instance memebers i.e.self.LIGHT_ON
in theRelay
class. While this will work it may confuse a reader, they should be accessed likeRelay.LIGHT_ON
andRelay.LIGHT_OFF