def get_switch(self, name):
        try:
            return self._switches[name]
        except KeyError:
            raise UnknownDevice(name)
.
dataset/ETHPy150Open iancmcc/ouimeaux/ouimeaux/environment.py/Environment.get_switch--crossover with--dataset/ETHPy150Open home-assistant/home-assistant/tests/helpers/test_template.py/TestUtilTemplate.test_utcnow_is_exactly_now