Lines
0.00%
0 / 2
Methods
0.00%
0 / 2
Classes
0.00%
0 / 1
| Name | Lines | Methods | CRAP | ||||
|---|---|---|---|---|---|---|---|
| __construct | 0.00% | 0 / 1 | 0.00% | 0 / 1 | 2 | ||
| getPlatform | 0.00% | 0 / 1 | 0.00% | 0 / 1 | 2 | ||
| 9 | final readonly class BinarySensorConfig extends ExposedEntityConfig | |
| 10 | { | |
| 11 | /** @throws ExposureException */ | |
| 12 | public function __construct( | |
| 13 | public ?BinarySensorDeviceClass $deviceClass = null, | |
| 14 | ?string $name = null, | |
| 15 | ?string $icon = null, | |
| 16 | ?EntityCategory $entityCategory = null, | |
| 17 | bool $enabledByDefault = true, | |
| 18 | ) { | |
| 19 | parent::__construct($name, $icon, $entityCategory, $enabledByDefault); | |
| 20 | } | |
| 21 | ||
| 22 | public function getPlatform(): ExposedPlatform | |
| 23 | { | |
| 24 | return ExposedPlatform::BinarySensor; | |
| 25 | } | |
| 26 | } |