<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def update(self):
 """ Update all the switch values """


        self.states = [bool(int(x)) for x in self.get('port list') or '0000']