mirror of
https://github.com/esphome/esphome.git
synced 2025-04-18 16:50:28 +01:00
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com> Co-authored-by: Marcus Better <marcus@better.se> Co-authored-by: Trevor Schirmer <24777085+TrevorSchirmer@users.noreply.github.com> Co-authored-by: Keith Burzinski <kbx81x@gmail.com>
15 lines
333 B
C++
15 lines
333 B
C++
#include "zone_coordinate_number.h"
|
|
|
|
namespace esphome {
|
|
namespace ld2450 {
|
|
|
|
ZoneCoordinateNumber::ZoneCoordinateNumber(uint8_t zone) : zone_(zone) {}
|
|
|
|
void ZoneCoordinateNumber::control(float value) {
|
|
this->publish_state(value);
|
|
this->parent_->set_zone_coordinate(this->zone_);
|
|
}
|
|
|
|
} // namespace ld2450
|
|
} // namespace esphome
|