mirror of
				https://github.com/KevinMidboe/python-gpiozero.git
				synced 2025-10-29 17:50:37 +00:00 
			
		
		
		
	Make mock constructor consistent
This commit is contained in:
		| @@ -40,7 +40,7 @@ class MockPin(PiPin): | ||||
|     def __init__(self, factory, number): | ||||
|         super(MockPin, self).__init__(factory, number) | ||||
|         self._function = 'input' | ||||
|         self._pull = 'up' if factory.pi_info.pulled_up(repr(self)) else 'floating' | ||||
|         self._pull = 'up' if self.factory.pi_info.pulled_up(repr(self)) else 'floating' | ||||
|         self._state = self._pull == 'up' | ||||
|         self._bounce = None | ||||
|         self._edges = 'both' | ||||
|   | ||||
		Reference in New Issue
	
	Block a user