def update(self):
self._controller.update(self._id, wake_if_asleep=False)<EOL>data = self._controller.get_charging_params(self._id)<EOL>if data:<EOL><INDENT>if data['<STR_LIT>'] in ["<STR_LIT>"]:<EOL><INDENT>self.__state = False<EOL><DEDENT>else:<EOL><INDENT>self.__state = True<EOL><DEDENT><DEDENT>
Update the charger connection sensor.