switchbot/__init__.py
def device(self, id):
        """Return individual device by ID."""
        if id not in self._devices:
            self._devices[id] = Device.factory(self, id)

        return self._devices[id]
Return individual device by ID.
Return individual device by ID.
Return individual device by ID .
def device(self, id):
        if id not in self._devices:
            self._devices[id] = Device.factory(self, id)
        return self._devices[id]
def device ( self , id ) : if id not in self . _devices : self . _devices [ id ] = Device . factory ( self , id ) return self . _devices [ id ]
Return individual device by ID.
Return individual device by ID .
"""Return individual device by ID."""
self
id