mirror of
https://github.com/KevinMidboe/python-gpiozero.git
synced 2025-10-29 17:50:37 +00:00
Merge pull request #138 from alexwlchan/awlc/fishdish
Fix return type of TrafficLightsBuzzer.value
This commit is contained in:
@@ -211,7 +211,7 @@ class TrafficLightsBuzzer(SourceMixin, CompositeDevice):
|
|||||||
the LEDs, and the buzzer. This property can also be set to a 4-tuple
|
the LEDs, and the buzzer. This property can also be set to a 4-tuple
|
||||||
to update the state of all the board's components.
|
to update the state of all the board's components.
|
||||||
"""
|
"""
|
||||||
return FishDishTuple(
|
return TrafficLightsBuzzerTuple(
|
||||||
self.lights.red.value,
|
self.lights.red.value,
|
||||||
self.lights.amber.value,
|
self.lights.amber.value,
|
||||||
self.lights.green.value,
|
self.lights.green.value,
|
||||||
|
|||||||
Reference in New Issue
Block a user