async def METHOD_NAME(self):
    self.dps[self.basicSwitchDps] = self.basicSwitchOn
    async with assert_device_properties_set(
        self.basicSwitch._device, {self.basicSwitchDps: self.basicSwitchOff}
    ):
        await self.basicSwitch.async_toggle()