since HA2021.12.dev0 , remove device_state_attributes to avoid warnings like following:
Entity .. (<class 'custom_components.nodered.binary_sensor.NodeRedBinarySensor'>) implements device_state_attributes. Please report it to the custom component author.
Entity ... (<class 'custom_components.nodered.switch.NodeRedSwitch'>) implements device_state_attributes. Please report it to the custom component author.
Entity ... (<class 'custom_components.nodered.sensor.NodeRedSensor'>) implements device_state_attributes. Please report it to the custom component author.
since HA2021.12.dev0 , remove device_state_attributes to avoid warnings like following: