sdwire 0.2.4__tar.gz → 0.2.5__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: sdwire
3
- Version: 0.2.4
3
+ Version: 0.2.5
4
4
  Summary: CLI application to interact with Badgerd SDWire devices
5
5
  License: GPL-3
6
6
  Author: Talha Can Havadar
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "sdwire"
3
- version = "0.2.4"
3
+ version = "0.2.5"
4
4
  description = "CLI application to interact with Badgerd SDWire devices"
5
5
  authors = ["Talha Can Havadar <havadartalha@gmail.com>"]
6
6
  license = "GPL-3"
@@ -12,12 +12,12 @@ class SDWire(USBDevice):
12
12
  def __init__(self, port_info: PortInfo, generation: int):
13
13
  super().__init__(port_info)
14
14
  self.generation = generation
15
- for sibling in self.dev_string.parent.children:
15
+ for child in self.dev_string.children:
16
16
  if (
17
- self.dev_string.device_path != sibling.device_path
18
- and sibling.device_type == "disk"
17
+ self.dev_string.device_path != child.device_path
18
+ and child.device_type == "disk"
19
19
  ):
20
- self.__block_dev = f"/dev/{sibling.device_path.split('/')[-1]}"
20
+ self.__block_dev = f"/dev/{child.device_path.split('/')[-1]}"
21
21
  break
22
22
 
23
23
  def switch_ts(self):
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes