def attach(self):
        """Attach strategy to its sensor and send initial update."""
        s = self._sensor
        self.update(s, s.read())
        self._sensor.attach(self)
def attach ( self ) : s = self . _sensor self . update ( s , s . read ( ) ) self . _sensor . attach ( self )
Attach strategy to its sensor and send initial update.