mirror of
https://github.com/esphome/esphome.git
synced 2026-09-11 23:37:34 +00:00
[packet_transport] Remove unnecessary friend declarations
The lambdas are defined inside PacketTransport::setup() so they inherit member-function access rights. The friend declarations are not needed for accessing protected members through parent pointer.
This commit is contained in:
@@ -58,13 +58,6 @@ struct BinarySensor {
|
||||
#endif
|
||||
|
||||
class PacketTransport : public PollingComponent {
|
||||
#ifdef USE_SENSOR
|
||||
friend struct Sensor;
|
||||
#endif
|
||||
#ifdef USE_BINARY_SENSOR
|
||||
friend struct BinarySensor;
|
||||
#endif
|
||||
|
||||
public:
|
||||
void setup() override;
|
||||
void loop() override;
|
||||
|
||||
Reference in New Issue
Block a user