This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
blueprint: | |
name: ZHA - Moes Smart Knob for lights (prondzyn edit) | |
description: 'Control lights with a Moes Smart Knob. | |
You can set functions for a single press. This allows you to assign, | |
e.g., a scene or anything else. | |
Rotating left/right will change the brightness smoothly of the selected light. | |
Not all functionality of the device is available at time of writing, e.g. double press, long press and press and rotate. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// imports are here | |
@RestController | |
class ImageController { | |
// This will work, but response content type can be improper. | |
@GetMapping("/images_1/{id}") | |
fun getImage1(@PathVariable id: UUID): ByteArray? { | |
return // bytes of an image | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import io.kotest.core.spec.style.WordSpec | |
import io.kotest.extensions.spring.SpringExtension | |
import io.kotest.matchers.* | |
import generated.tables.daos.FacilityDao | |
import generated.jooq.tables.pojos.Facility | |
import org.springframework.beans.factory.annotation.Autowired | |
import org.springframework.boot.test.autoconfigure.jooq.JooqTest | |
import org.springframework.context.annotation.Import | |
import org.springframework.test.context.DynamicPropertyRegistry | |
import org.springframework.test.context.DynamicPropertySource |