@@ -58,13 +58,13 @@ def update(self): # noqa: C901
5858 localAddress = 'windowheating' , parent = self , value = ControlOperation .NONE , valueType = ControlOperation ,
5959 valueSetter = self .__setWindowHeatingControlChange )
6060 elif isinstance (status , AccessStatus ) and not status .error .enabled and self .vehicle .weConnect .spin is not None \
61- and type (self .vehicle .weConnect .spin ) != bool :
61+ and type (self .vehicle .weConnect .spin ) is not bool :
6262 if self .accessControl is None :
6363 self .accessControl = ChangeableAttribute (
6464 localAddress = 'access' , parent = self , value = AccessControlOperation .NONE , valueType = AccessControlOperation ,
6565 valueSetter = self .__setAccessControlChange )
6666 elif isinstance (status , AuxiliaryHeatingTimer ) and not status .error .enabled and self .vehicle .weConnect .spin is not None \
67- and type (self .vehicle .weConnect .spin ) != bool :
67+ and type (self .vehicle .weConnect .spin ) is not bool :
6868 if self .accessControl is None :
6969 self .auxiliaryHeating = ChangeableAttribute (
7070 localAddress = 'auxiliaryHeating' , parent = self , value = ControlOperation .NONE , valueType = (ControlOperation , int ),
@@ -240,7 +240,7 @@ def __setAuxiliaryHeatingChange(self, value): # noqa: C901
240240 duration = int (value )
241241 else :
242242 raise ControlError ('Could not control auxiliary heating, control argument %s cannot be understood' , value )
243- if self .vehicle .weConnect .spin is None or type (self .vehicle .weConnect .spin ) != str :
243+ if self .vehicle .weConnect .spin is None or type (self .vehicle .weConnect .spin ) is not str :
244244 raise ControlError ('Could not control access, control operation needs an S-PIN' )
245245 spin = self .vehicle .weConnect .spin
246246
@@ -311,7 +311,7 @@ def __setAccessControlChange(self, value): # noqa: C901
311311 control = value
312312 else :
313313 raise ControlError ('Could not control access, control argument %s cannot be understood' , value )
314- if self .vehicle .weConnect .spin is None or type (self .vehicle .weConnect .spin ) != str :
314+ if self .vehicle .weConnect .spin is None or type (self .vehicle .weConnect .spin ) is not str :
315315 raise ControlError ('Could not control access, control operation needs an S-PIN' )
316316 spin = self .vehicle .weConnect .spin
317317
0 commit comments