Skip to content

Commit 0af9c68

Browse files
committed
[thermostat-device-addon] Splitting virtual connector part to addon (#237)
1 parent d01c2cc commit 0af9c68

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

docs/Naming-Convention.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Chanel is a mapped property to physical device data point entity.
1818
## Property
1919

2020
A property in the [FastyBird](https://www.fastybird.com) [IoT](https://en.wikipedia.org/wiki/Internet_of_things) ecosystem refers to a entity which is holding configuration values or
21-
device actual state of a device. Connector, Device and Channel entity has own Property entities.
21+
device actual state. Connector, Device and Channel entity has own Property entities.
2222

2323
### Connector Property
2424

src/Entities/TuyaChannel.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
class TuyaChannel extends DevicesEntities\Channels\Channel
2626
{
2727

28-
public const TYPE = 'tuya';
28+
public const TYPE = 'tuya-connector';
2929

3030
public function getType(): string
3131
{

src/Entities/TuyaConnector.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
class TuyaConnector extends DevicesEntities\Connectors\Connector
3030
{
3131

32-
public const TYPE = 'tuya';
32+
public const TYPE = 'tuya-connector';
3333

3434
public function getType(): string
3535
{

src/Entities/TuyaDevice.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
class TuyaDevice extends DevicesEntities\Devices\Device
3535
{
3636

37-
public const TYPE = 'tuya';
37+
public const TYPE = 'tuya-connector';
3838

3939
public const STATE_READING_DELAY = 5_000.0;
4040

tests/sql/dummy.data.sql

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
INSERT
22
IGNORE INTO `fb_devices_module_connectors` (`connector_id`, `connector_identifier`, `connector_name`, `connector_comment`, `connector_enabled`, `connector_type`, `created_at`, `updated_at`) VALUES
3-
(_binary 0x74fba85a95854f5fa7cc8d3806da5ada, 'tuya-cloud', 'Tuya Cloud', null, true, 'tuya', '2023-08-21 22:00:00', '2023-08-21 22:00:00'),
4-
(_binary 0x27848e3c23b44aaaa94eaae975d98550, 'tuya-local', 'Tuya Local', null, true, 'tuya', '2023-08-21 22:00:00', '2023-08-21 22:00:00');
3+
(_binary 0x74fba85a95854f5fa7cc8d3806da5ada, 'tuya-cloud', 'Tuya Cloud', null, true, 'tuya-connector', '2023-08-21 22:00:00', '2023-08-21 22:00:00'),
4+
(_binary 0x27848e3c23b44aaaa94eaae975d98550, 'tuya-local', 'Tuya Local', null, true, 'tuya-connector', '2023-08-21 22:00:00', '2023-08-21 22:00:00');
55

66
INSERT
77
IGNORE INTO `fb_devices_module_connectors_controls` (`control_id`, `connector_id`, `control_name`, `created_at`, `updated_at`) VALUES

0 commit comments

Comments
 (0)