def update(self):
self._controller.update(self._id, wake_if_asleep=False)<EOL>data = self._controller.get_drive_params(self._id)<EOL>if data:<EOL><INDENT>if not data['<STR_LIT>'] or data['<STR_LIT>'] == '<STR_LIT:P>':<EOL><INDENT>self.__state = True<EOL><DEDENT>else:<EOL><INDENT>self.__state = False<EOL><DEDENT><DEDENT>
Update the parking brake sensor.